#11230: Assigning the super class of a Proxy class to a ForeignKey fails.
---------------------------------------------------+------------------------
Reporter: dpn | Owner: nobody
Status: new | Milestone:
Component: Database layer (models, ORM) | Version: 1.0
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Comment (by dpn):
To clarify a few more details:
* The model validates fine, tables are created with syncdb etc.
* The SuperClass is a fully fledged db.models.Model.
* Proxy is a proxy class that extends SuperClass but has no table in the
DB.
{{{
class Proxy(SuperClass):
def proxy_behaviour(self):
pass
class Meta:
proxy = True
}}}
Hope that helps a bit more...
--
Ticket URL: <http://code.djangoproject.com/ticket/11230#comment:3>
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
-~----------~----~----~----~------~----~------~--~---