Russell Keith-Magee wrote:
> If you have a use case in magic-removal where "self" is the only
> allowed string, then you have probably found a bug. Is this the case,

[Jumpin into youses conversation with just such a bug]

class Foo(models.Model):
    myfield = models.OneToOneField('SomeModel', to_field='id')

Works.

class Foo(models.Model):
    myfield = models.OneToOneField('SomeModel')

Fails because whatever "turns" 'SomeModel' from string into class object
hasn't happened when code in
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/db/models/fields/related.py
on line 510 tries to determine default to_field.

--
norm
"Zhuangzi dreamed he was a butterfly" -- Zhuangzi


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to