- Fixing long stated issue with GenericRelation fields. Thanks to StillNewb for the patch.
- Supporting Django 1.6.
- Fixing issue with models that have a selfreferencing ForeignKey field. Thanks to Josh Fyne for the patch.
- Adding
generators.WeightedGenerator
for propabilistic selection of values. Thanks to Jonathan Tien for the idea and patch. - Supporting model inheritance. Thanks to Josh Fyne for the patch.
- Adding
FirstNameGenerator
andLastNameGenerator
. Thanks to Jonathan Tien for the initial patch. - Registered Autofixtures are used for models that are created for foreignkeys and many to many relations. Thanks to Theo Spears for the report.
- Python 3 support! Though we had to drop Python 2.5 support. If you cannot upgrade to Python 2.6 by yet, please consider using the 0.3.x versions of django-autofixture. By the way: by Python 3 support, I mean, that the test suite is running without any errors. I have not tested yet the library in production for Python 3. So please test and submit bug reports if you encounter any.
DateTimeField
receive timezone aware datetime objects now. Thanks to Scott Woodall for the report and patch.- Adding
static_domain
parameter toEmailGenerator
to allow the production of emails that will always have the same domain. Thanks to mvdwaeter for the initial patch.
field_values
were not picked up if there was a default value assigned to the field. Thanks to sirex for the report.
- Adding better support for subclassing
AutoFixture
through merging of nestedValues
classes. - Renamed attribute and argument
none_chance
to better matching nameempty_p
for generators andnone_p
forAutoFixture
. - Fixed some issues with management command options. Thanks Mikko Hellsing for his hard work.
- Fixed issues in unregister(). Thanks Mikko Hellsing for the report.
- Adding support for
FloatField
. Thanks to Jyr Gaxiola for the report.
- Fixing issue with
--generate-fk
option in management command. Thanks Mikko Hellsing for the report and fix.
- Using
Autofixture.Values
for defining initial values inAutofixture
subclasses. - Making autodiscover more robust. Don't break if some module can't be imported or throws any other exception.
- Fixing bug when a
CharField
withmax_length
smaller than 15 is used. AutoFixture.field_values
accepts callables as values.