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

E NameError: global name 'instance' is not defined #82

Closed saxix closed 8 years ago

saxix commented 8 years ago

the error is produced in ddf.py:380

getattr(instance, field.name).save(django_file.name, django_file, save=False)

should be

getattr(__instance, __field.name).save(django_file.name, django_file, save=False)

paulocheque commented 8 years ago

nice!