I have a model that I have created a custom consturctor now when I use it in a test or in loaddata, I get this error:
vba...@vbabiy-laptop:~/projects/git-projects/howsthedotcom$ ./manage.py loaddata email_verification Installing json fixture 'email_verification' from '/home/vbabiy/projects/git-projects/howsthedotcom/../howsthedotcom/fixtures'. Problem installing fixture '/home/vbabiy/projects/git-projects/howsthedotcom/../howsthedotcom/fixtures/email_verification.json': Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/core/management/commands/loaddata.py", line 150, in handle for obj in objects: File "/usr/lib/python2.5/site-packages/django/core/serializers/json.py", line 41, in Deserializer for obj in PythonDeserializer(simplejson.load(stream)): File "/usr/lib/python2.5/site-packages/django/core/serializers/python.py", line 96, in Deserializer yield base.DeserializedObject(Model(**data), m2m_data) TypeError: __init__() takes at least 3 non-keyword arguments (1 given) Vitaly Babiy --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---