Don't overwrite modifications to ModificationTimestampField

Review Request #9816 — Created March 21, 2018 and submitted — Latest diff uploaded

Information

Djblets
release-1.0.x
a0aee27...

Reviewers

The ModificationTimestampField now tracks manual modifications to the
value so that if code manually sets a timestamp it will not be
overwritten during model save. This allows models to manage timestamps
manually in some cases without having to resort to mucking about with
save_base, etc.

Ran unit tests.

Diff Revision 7

This is not the most recent revision of the diff. The latest diff is revision 8. See what's changed.

orig
1
2
3
4
5
6
7
8
djblets/db/fields/modification_timestamp_field.py
djblets/db/tests/test_modification_timestamp_field.py
Loading...