bugfix:
- Not comparing fields that are deferred (
onlymethod onQuerySet).- Being more tolerant when comparing values that can be on another type than expected.
New:
- Adding
save_dirty_fieldsmethod to save only dirty fields in the database.
New:
- Using
copyto properly track dirty fields on complex fields.- Using
py.testfor tests launching.
Bugfix:
- Preventing django db expressions to be evaluated when testing dirty fields (#39).
New:
- Using
to_pythonto avoid false positives when dealing with model fields that internally convert values (#4)
Bugfix:
- Using
attnameinstead ofnameon fields to avoid massive useless queries on ForeignKey fields (#34). For this kind of field,get_dirty_fields()is now returning instance id, instead of instance itself.
New:
- Adding code compatibility for python3,
- Launching travis-ci tests on python3,
- Using
toxto launch tests on Django 1.5, 1.6, 1.7 and 1.8 versions,- Updating
runtests.pytest script to run properly on every Django version.
Bugfix:
- Catching
Errorwhen trying to get foreign key object if not existing (#32).
Bugfix:
- Removing
model_to_formto avoid bug when using models that haveeditable=Falsefields.
New:
- Adding
check_relationshipparameter onis_dirtyandget_dirty_fieldmethods to also check foreign key values.