mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
Replace timezone.now with timezone_now.
This commit is contained in:
@@ -9,11 +9,11 @@ from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
from django.utils import timezone
|
||||
from django.utils.timezone import now as timezone_now
|
||||
|
||||
def backfill_user_activations_and_deactivations(apps, schema_editor):
|
||||
# type: (StateApps, DatabaseSchemaEditor) -> None
|
||||
migration_time = timezone.now()
|
||||
migration_time = timezone_now()
|
||||
RealmAuditLog = apps.get_model('zerver', 'RealmAuditLog')
|
||||
UserProfile = apps.get_model('zerver', 'UserProfile')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user