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 > them the opportunity to make edits

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 class