datatracker/ietf/submit/migrations
Jennifer Richards ebebdbed3e
refactor: replace datetime.now and datetime.today with timezone.now (#4211)
* refactor: replace datetime.now with timezone.now

* refactor: migrate model fields to use timezone.now as default

* refactor: replace datetime.today with timezone.now

datetime.datetime.today() is equivalent to datetime.datetime.now(); both
return a naive datetime with the current local time.

* refactor: rephrase datetime.now(tz) as timezone.now().astimezone(tz)

This is effectively the same, but is less likely to encourage accidental
use of naive datetimes.

* refactor: revert datetime.today() change to old migrations

* refactor: change a missed datetime.now to timezone.now

* chore: renumber timezone_now migration

* chore: renumber migrations
2022-08-25 13:45:16 -03:00
..
0001_initial.py Removed all __future__ imports. 2020-03-05 23:53:42 +00:00
0002_submission_document2_fk.py Removed all __future__ imports. 2020-03-05 23:53:42 +00:00
0003_remove_old_document_field.py Removed all __future__ imports. 2020-03-05 23:53:42 +00:00
0004_rename_field_document2.py Removed all __future__ imports. 2020-03-05 23:53:42 +00:00
0005_auto_20200624_1332.py Changed NullBoleanField() to BooleanField(null=True), according to the 2.1 upgrade recommendations. 2020-06-24 20:33:57 +00:00
0006_submission_xml_version.py Added an xml_version field to Submission objects, to capture the schema version of submitted XML files (if any). Related to issue #3067. 2020-08-28 14:31:36 +00:00
0007_auto_20201109_0439.py Added matching indexes to a number of models with ordering by multiple keys. 2020-11-09 19:41:12 +00:00
0008_submissionextresource.py Allow external resources to be set/suggested during submission process. Fixes #3068. Commit ready for merge. 2021-04-19 20:21:19 +00:00
0009_auto_20220427_1223.py feat: Celery support and asynchronous draft submission API (#4037) 2022-08-22 13:29:31 -05:00
0010_create_cancel_stale_submissions_task.py chore: create stale submission cleanup task and other deployment tweaks (#4358) 2022-08-24 12:29:48 -05:00
0011_use_timezone_now_for_submit_models.py refactor: replace datetime.now and datetime.today with timezone.now (#4211) 2022-08-25 13:45:16 -03:00
__init__.py Cleaning up old unused migrations for the submit app, and setting up a new 2013-04-21 21:23:39 +00:00