I 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 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.
7 comments
[ 2.8 ms ] story [ 32.4 ms ] thread>>> 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 {}
We 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.
displaying a field as hidden doesn't make it uneditable.