Re: Filling out a form using a json file

2016-12-13 Thread jochen . luig
Hello Abraham, thanks for your answer! On Mon, 12. Dec 10:15, 'Abraham Varricatt' via Django users wrote: > What about using the forms validate() method? i.e. if the user has not > filled in all the JSON details, return a validation error. This should give >

Re: Filling out a form using a json file

2016-12-12 Thread 'Abraham Varricatt' via Django users
Hello Jochen, On Monday, December 12, 2016 at 9:17:11 AM UTC-5, joche...@gmail.com wrote: > > > for editing Objects, but it seems that those views can only deal with > objects that already are in the database. So is there a more > idiomatic way to solve this or am I stuck with the above

Filling out a form using a json file

2016-12-12 Thread jochen . luig
Hi, I have a json file describing an object that I want to import into my app. For that purpose, I want to upload it using a form field and fill a ModelForm so the contents can be checked and edited by a user before saving it to the database. This is what I'm currently doing: # in forms.py