#10953: Proxy model of a proxy model is of incorrect type. ---------------------------------------------------+------------------------ Reporter: mrmachine | Owner: nobody Status: new | Milestone: Component: Database layer (models, ORM) | Version: SVN Resolution: | Keywords: proxy type foreign key Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ---------------------------------------------------+------------------------ Changes (by mrmachine):
* needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 Comment: Looks like the incorrect model is being assigned to the manager (or simply being copied unchanged from the base proxy class). This causes any querysets from the manager to create model objects of the wrong type. {{{ >>> User1.objects.model <class 'myapp.models.User1'> >>> User2.objects.model <class 'myapp.models.User1'> }}} -- Ticket URL: <http://code.djangoproject.com/ticket/10953#comment:1> 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 django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---