diff --git a/core/migrations/0032_alter_user_timezone.py b/core/migrations/0032_alter_user_timezone.py index 33d01146..9016538e 100644 --- a/core/migrations/0032_alter_user_timezone.py +++ b/core/migrations/0032_alter_user_timezone.py @@ -465,7 +465,7 @@ class Migration(migrations.Migration): ("US/Pacific", "US/Pacific"), ("UTC", "UTC"), ], - default=core.models.user.get_default_user_timezone, + default="UTC", max_length=50, ), ), diff --git a/core/migrations/0047_auto_20211009_2110.py b/core/migrations/0047_auto_20211009_2110.py index 68190fae..40410345 100644 --- a/core/migrations/0047_auto_20211009_2110.py +++ b/core/migrations/0047_auto_20211009_2110.py @@ -469,7 +469,7 @@ class Migration(migrations.Migration): ("US/Pacific", "US/Pacific"), ("UTC", "UTC"), ], - default=core.models.user.get_default_user_timezone, + default="UTC", max_length=50, ), ), diff --git a/core/migrations/0048_alter_user_timezone.py b/core/migrations/0048_alter_user_timezone.py index a9c96a18..02cc376f 100644 --- a/core/migrations/0048_alter_user_timezone.py +++ b/core/migrations/0048_alter_user_timezone.py @@ -465,7 +465,7 @@ class Migration(migrations.Migration): ("US/Pacific", "US/Pacific"), ("UTC", "UTC"), ], - default=core.models.user.get_default_user_timezone, + default="UTC", max_length=50, ), ), diff --git a/core/migrations/0049_alter_user_timezone.py b/core/migrations/0049_alter_user_timezone.py index dba33021..bed1ef9a 100644 --- a/core/migrations/0049_alter_user_timezone.py +++ b/core/migrations/0049_alter_user_timezone.py @@ -465,7 +465,7 @@ class Migration(migrations.Migration): ("US/Pacific", "US/Pacific"), ("UTC", "UTC"), ], - default=core.models.user.get_default_user_timezone, + default="UTC", max_length=50, ), ), diff --git a/core/migrations/0071_user_deleted_at_user_is_deleted_alter_comment_author_and_more.py b/core/migrations/0071_user_deleted_at_user_is_deleted_alter_comment_author_and_more.py index 43a50e1e..0b816772 100644 --- a/core/migrations/0071_user_deleted_at_user_is_deleted_alter_comment_author_and_more.py +++ b/core/migrations/0071_user_deleted_at_user_is_deleted_alter_comment_author_and_more.py @@ -497,7 +497,7 @@ class Migration(migrations.Migration): ("US/Pacific", "US/Pacific"), ("UTC", "UTC"), ], - default=core.models.user.get_default_user_timezone, + default="UTC", max_length=50, ), ), diff --git a/core/models/user.py b/core/models/user.py index 500f27ae..18ed053d 100644 --- a/core/models/user.py +++ b/core/models/user.py @@ -25,11 +25,6 @@ def get_by_natural_key(self, username): return self.get(**{self.model.USERNAME_FIELD + "__iexact": username}) -def get_default_user_timezone(): - """Only used in migrations now.""" - return settings.TIME_ZONE - - class User(AbstractUser): objects = CaseInsensitiveUserManager() bio = models.TextField(blank=True)