On Dec 11, 2007 3:42 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > When I try to run syncdb on a model which uses the PickledObjectField > (see my sample model at http://dpaste.com/hold/27713/), I get this > traceback:-
Your problem is that you're importing the PickledObjectField into your class's namespace. So when Django processes your form definition, it's actually getting two attributes: * lookups (instantiated, which will work fine) * PickledObjectField (uninstantiated, which will cause errors) Move the import statement to the top of your models.py file, where it belongs, and you should find that the error goes away. There are no doubt other things you'll run into, but I'll at least give you a chance to work them out on your own. :) -Gul --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---