#8813: BaseInlineFormSet unable to save existing objects
---------------------------------+------------------------------------------
Reporter: tobias | Owner: nobody
Status: new | Milestone:
Component: Forms | Version: SVN
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------+------------------------------------------
Comment (by tobias):
The problem was that I wasn't printing out {{ transaction_form }} in my
template, but I was printing only the fields I needed. So, that explains
the absence of cleaned_data!["id"]. When I manually print {{
transaction_form.id }} in my template it works fine.
Two suggestions:
1) make is_valid raise the appropriate error if the pk field is missing
from request.POST.
2) make a note in the documentation that {{ form.id }} must be included in
your template, if you don't use the {{ form }} or {{ formset }} helpers.
--
Ticket URL: <http://code.djangoproject.com/ticket/8813#comment:5>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---