#1708: Problem with OneToOneField(self)
-----------------------------+----------------------------------------------
Reporter: Dagur | Owner: adrian
Type: defect | Status: new
Priority: normal | Milestone:
Component: Admin interface | Version: magic-removal
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
I had this line in my model:
{{{
reply_to = models.OneToOneField('self', null=True, blank=True)
}}}
But that results in this error:
{{{
Traceback (most recent call last):
...
File "/usr/lib/python2.4/site-
packages/django/db/models/fields/related.py", line 510, in __init__
to_field = to_field or to._meta.pk.name
AttributeError: 'str' object has no attribute '_meta'
}}}
Something left fixing for M-R?
--
Ticket URL: <http://code.djangoproject.com/ticket/1708>
Django <http://code.djangoproject.org/>
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
-~----------~----~----~----~------~----~------~--~---