paulocheque / django-dynamic-fixture

A complete library to create dynamic model instances for testing purposes.
http://django-dynamic-fixture.readthedocs.io/
Other
391 stars 67 forks source link

Problem with ManyToManyField #12

Closed kajic closed 12 years ago

kajic commented 12 years ago

Having added a ManyToManyField to a model (MyModel) I am suddenly starting to get these kind of errors:

G(MyModel) { instance is printed here ... } AttributeError: 'MyModel' object has no attribute 'id'

The error message itself isn't very helpful, do you have any idea what is going on?

kajic commented 12 years ago

The error was actually caused by an exception that occurred when a instance of a sub-model was to be created. This error was however completely unmentioned in the unhelpful exception thrown by django-dynamic-fixture.

paulocheque commented 12 years ago

Hi. Thanks for reporting! I will investigate this issue. But I did not understand the reason you close this issue. If you have some suggestion about DDF exceptions, please tell us to improve this tool.

Sincerely.