On 4/19/06, njharman <[EMAIL PROTECTED]> wrote: > 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.
Interesting. Looks like I have some work to do. The bug tracking system is down at the moment, but as soon as it comes back up, I'll log this one and put it on my todo list. Thanks, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---