Closed qris closed 4 years ago
Thanks for reporting! This must be a bug or documentation issue =)
@data_fixture: override DDF_DEFAULT_DATA_FIXTURE configuration. Default is SequentialDataFixture().
While there is not 'factory' implemented I recommend you to use the RandomDataFixture() like you predicted.
This issue is still present in the documentation, under Overriding global data fixture. Doing G(MyModel, data_fixture='sequential')
is also suggested, which results in the same error.
Fixed: https://github.com/paulocheque/django-dynamic-fixture/pull/110
Thanks again for the contribution.
The docs say you can do:
But this doesn't work:
I suspect I should be creating an instance of RandomDataFixture() instead?