#10274: BaseGenericInlineFormSet.get_queryset calls .empty()
---------------------------------------+------------------------------------
Reporter: Zak Johnson <[email protected]> | Owner: nobody
Status: new | Milestone:
Component: Contrib apps | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 1 |
---------------------------------------+------------------------------------
In BaseGenericInlineFormSet.get_queryset():
{{{
if self.instance is None:
return self.model._default_manager.empty()
}}}
Managers don't have an `empty()` method; this should instead be
`get_empty_query_set()`. Attached patch (against trunk revision 9836)
includes a doctest to illustrate the problem.
--
Ticket URL: <http://code.djangoproject.com/ticket/10274>
Django <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
-~----------~----~----~----~------~----~------~--~---