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

2013-08-30 Thread Marcos Luiz Wilhelm
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

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

2013-08-26 Thread C. Kirby
Have you verified that the url being called has a music_id? On Monday, August 26, 2013 10:40:52 AM UTC-5, Marcos Luiz Wilhelm wrote: > > Hello! > I'm having problems with a view that makes add and update > The view generates a new record rather than change a instance. > My code is this:

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

2013-08-26 Thread Marcos Luiz Wilhelm
Hello! I'm having problems with a view that makes add and update The view generates a new record rather than change a instance. My code is this: http://pastebin.com/rZNAeN0p Someone can help me please? -- You received this message because you are subscribed to the Google Groups "Django users"