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

Always honor attributes if given explicitly by user #46

Closed ticosax closed 10 years ago

ticosax commented 10 years ago

disregarding ignore_fields content.

It allows usage of django-dynamic-fixture like this:

assert settings.DDF_IGNORE_FIELDS == ['name']
instance = G(InstanceModel, name='foo')
assert instance.name == 'foo'

Because It is user decision and user should be able to override gloabal settings when it comes handy to do it.

paulocheque commented 10 years ago

Makes sense! great!

ticosax commented 10 years ago

That was fast. Thank you !