Core Concepts of Django Forms
pydanny.com
Core Concepts of Django Forms
1–8 of 8 posts
Re: Core Concepts of Django Forms
#2>>> good_form = MyForm({"title": "Two Scoops of Django"}) >>> good_form.is_valid() True >>> good_form.errors {} >>> bad_form = MyForm({"title": "Two Scoops of Django"}) >>> bad_form.is_valid() True >>> bad_form.errors {}
Re: Core Concepts of Django Forms
#3In forms validate dictionaries, the example makes no sense. At first, I assumed this was a duplicate key issue, but I cannot reproduce this problem. >>> good_form = MyForm({"title": "Two Scoops of Django"}) >>> good_form.is_valid() True >>> good_form.errors {} >>> bad_form = MyForm({"title": "Two Scoops of Django"}) >>> bad_form.is_valid() True >>> bad_form.errors {}
Re: Core Concepts of Django Forms
#4Re: Core Concepts of Django Forms
#5Re: Core Concepts of Django Forms
#6We tried to do a few forms with Django forms, only to find that the designer wanted something that made it easy to just skip the Django forms all together and just do them form by hand.
Re: Core Concepts of Django Forms
#7I might have been using an old version of Django, or I did it wrong, but hidden fields seemed to be a major pain with Django forms. Just because a field isn't marked a editable, doesn't mean that it should be included in the form data. It would be nice is editable=False, meant that "You can't edit this field and hidden=True meant: You will not see this field, editable=False would be assumes in this case. We tried to…
Re: Core Concepts of Django Forms
#8I might have been using an old version of Django, or I did it wrong, but hidden fields seemed to be a major pain with Django forms. Just because a field isn't marked a editable, doesn't mean that it should be included in the form data. It would be nice is editable=False, meant that "You can't edit this field and hidden=True meant: You will not see this field, editable=False would be assumes in this case. We tried to…
displaying a field as hidden doesn't make it uneditable.