Hey Folks,

I'm using trunk.  When I run this using python (without manage.py)...

card = Card(serial='0749FT266F')

...I get this error:

Traceback (most recent call last):
  File "./control.py", line 68, in <module>
    card = Card(serial='0749FT266F')
  File "/usr/lib/python2.5/site-packages/django/db/models/base.py", line 232, 
in __init__
    val = field.get_default()
  File "/usr/lib/python2.5/site-packages/django/db/models/fields/related.py", 
line 661, in get_default
    if isinstance(field_default, self.rel.to):
TypeError: isinstance() arg 2 must be a class, type, or tuple of classes and 
types

Running it using manage.py shell works fine.  Doing a...

print Card.objects.all()

...works fine either way.  I've set my sys.path and DJANGO_SETTINGS_MODULE
correctly.  Ideas?

Thanks,

Ryan

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to