#19719: Example in documentation saves an unbounded form -------------------------------+-------------------- Reporter: alexpirine | Owner: nobody Type: Uncategorized | Status: new Component: Documentation | Version: 1.4 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+-------------------- https://docs.djangoproject.com/en/dev/topics/forms/modelforms/#the-save- method
This doesn't work: {{{ >>> a = Article.objects.get(pk=1) >>> f = ArticleForm(instance=a) >>> f.save() # AttributeError: 'Article' object has no attribute 'cleaned_data' }}} Also confirmed here: http://stackoverflow.com/questions/2393348/django-form- error#comment2374980_2394120 and here: https://docs.djangoproject.com/en/dev/ref/forms/api/#behavior-of-unbound- forms -- Ticket URL: <https://code.djangoproject.com/ticket/19719> Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.