Re: checking/using model data in form save

2009-08-08 Thread zayatzz
Thank you tomZ! My problems were pretty much fixed by this snippet: http://www.djangosnippets.org/snippets/636/ It does exactly what i wanted with only a few glitches - does not add that checbox after saving the form when i have uploaded the picture and does not remove the delete checkbox when

Re: checking/using model data in form save

2009-08-07 Thread zayatzz
Ok it seems i either asked the wrong question or did not explain well enough. My view has such line: pform = ProfileForm(instance=profile) it creates the form instance and i thought that it also loads data from database and sends it to form, so i can use this in form

Re: checking/using model data in form save

2009-08-07 Thread zayatzz
Thank you! Alan. On Aug 6, 10:51 pm, Daniel Roseman wrote: > On Aug 6, 8:36 pm, zayatzz wrote: > > > > > > > Hello > > > I am not entirely sure if i am asking the right question, but here is > > what am trying to do. > > > I am saving user

Re: checking/using model data in form save

2009-08-06 Thread Daniel Roseman
On Aug 6, 8:36 pm, zayatzz wrote: > Hello > > I am not entirely sure if i am asking the right question, but here is > what am trying to do. > > I am saving user mugshot with form and it works just fine. I rename > the uploaded file to mugshot.[insert imagefile

checking/using model data in form save

2009-08-06 Thread zayatzz
Hello I am not entirely sure if i am asking the right question, but here is what am trying to do. I am saving user mugshot with form and it works just fine. I rename the uploaded file to mugshot.[insert imagefile extension here], but i want to do more in form save method than just that. 1) i