Friday, August 30, 2013

Re: [View Django] Problem with view that makes add and update

Hello!
The problem that occurred was that the view when answering the case of modification, the id of the record was not passed when submitting the form. My solution was to add a block if / else to change the action of the form.
The following code: http://pastebin.com/BtPrpqSJ

I do not know if it is the best practice, but I think a simple solution.
Thanks C. Kirby.
Hug!

Em segunda-feira, 26 de agosto de 2013 12h40min52s UTC-3, Marcos Luiz Wilhelm escreveu:
Hello!
I'm having problems with a view that makes add and update
The view generates a new record rather than change a instance.
Someone can help me please?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment