-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make model DateTime fields timezone aware.
Make all Datetime fields in models using `datetime.datetime.now` switch to the timezone-aware `django.utils.timezone.now`. Fields changed include: - reviews.models.Comments.commented_at - reviews.models.LatestVote.submitted_at - reviews.models.ProposalMessage.submitted_at - reviews.models.ResultNotification.timestamp - reviews.models.Review.submitted_at - reviews.models.ReviewAssignment.assigned_at - schedule.models.SessionRole.submitted - speakers.models.Speaker.created - sponsorship.models.Sponsor.added - teams.models.Team.created
- Loading branch information
Showing
10 changed files
with
145 additions
and
17 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
symposion/reviews/migrations/0002_make_fields_timezone_aware.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.12 on 2016-12-25 01:46 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.utils.timezone | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('symposion_reviews', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='comment', | ||
name='commented_at', | ||
field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='Commented at'), | ||
), | ||
migrations.AlterField( | ||
model_name='latestvote', | ||
name='submitted_at', | ||
field=models.DateTimeField(default=django.utils.timezone.now, editable=False, verbose_name='Submitted at'), | ||
), | ||
migrations.AlterField( | ||
model_name='proposalmessage', | ||
name='submitted_at', | ||
field=models.DateTimeField(default=django.utils.timezone.now, editable=False, verbose_name='Submitted at'), | ||
), | ||
migrations.AlterField( | ||
model_name='resultnotification', | ||
name='timestamp', | ||
field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='Timestamp'), | ||
), | ||
migrations.AlterField( | ||
model_name='review', | ||
name='submitted_at', | ||
field=models.DateTimeField(default=django.utils.timezone.now, editable=False, verbose_name='Submitted at'), | ||
), | ||
migrations.AlterField( | ||
model_name='reviewassignment', | ||
name='assigned_at', | ||
field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='Assigned at'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
symposion/schedule/migrations/0003_make_sessionrole_submitted_timezone_aware.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.12 on 2016-12-25 02:02 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.utils.timezone | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('symposion_schedule', '0002_slot_name'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='sessionrole', | ||
name='submitted', | ||
field=models.DateTimeField(default=django.utils.timezone.now), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
symposion/speakers/migrations/0003_make_speaker_created_timezone_aware.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.12 on 2016-12-24 23:19 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.utils.timezone | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('symposion_speakers', '0002_speaker_twitter_username'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='speaker', | ||
name='created', | ||
field=models.DateTimeField(default=django.utils.timezone.now, editable=False, verbose_name='Created'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
symposion/sponsorship/migrations/0003_make_sponsor_added_timezone_aware.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.12 on 2016-12-25 00:53 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.utils.timezone | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('symposion_sponsorship', '0002_auto_20160517_1726'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='sponsor', | ||
name='added', | ||
field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='added'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
symposion/teams/migrations/0002_make_team_created_timezone_aware.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.12 on 2016-12-25 01:54 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.utils.timezone | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('teams', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='team', | ||
name='created', | ||
field=models.DateTimeField(default=django.utils.timezone.now, editable=False, verbose_name='Created'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters