ciudadanointeligente / write-it

App to create and send messages to public persons. It's a component of POPLUS project.
poplus.org
GNU General Public License v3.0
38 stars 23 forks source link

An 'updated' DateTimeField should use auto_now, not auto_now_add #1209

Closed mhl closed 7 years ago

mhl commented 7 years ago

auto_now_add=True only sets the date when the object is first created, which is only suitable for the 'created' field. auto_now=True is the correct option for 'updated'.

This pull request also contains a commit to make sure that the 'inprogress' status is set however syncing is initiated, and one to remove some unnecessary code.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 98.162% when pulling 5ec53df0bffe86747ec4325d868bc2e2754511d5 on fix-sync-updated into e7b18bce62fae732019c8f32e3d58e8bf974bbba on alpaca-rebased.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.002%) to 98.164% when pulling e065f3e0cbf09037bfc9f40de49ef1845074278d on fix-sync-updated into e7b18bce62fae732019c8f32e3d58e8bf974bbba on alpaca-rebased.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.002%) to 98.164% when pulling 225a708334b016a2ff626b9e25b6ba9ad0070c0f on fix-sync-updated into e7b18bce62fae732019c8f32e3d58e8bf974bbba on alpaca-rebased.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.002%) to 98.164% when pulling 225a708334b016a2ff626b9e25b6ba9ad0070c0f on fix-sync-updated into e7b18bce62fae732019c8f32e3d58e8bf974bbba on alpaca-rebased.