presence: Support null values in UserPresence.

This commit is contained in:
Mateusz Mandera
2023-04-08 15:52:48 +02:00
committed by Tim Abbott
parent 0d79f6dd27
commit a9f40a64fd
6 changed files with 151 additions and 37 deletions

View File

@@ -113,11 +113,15 @@ class Migration(migrations.Migration):
),
(
"last_connected_time",
models.DateTimeField(db_index=True, default=django.utils.timezone.now),
models.DateTimeField(
db_index=True, default=django.utils.timezone.now, null=True
),
),
(
"last_active_time",
models.DateTimeField(db_index=True, default=django.utils.timezone.now),
models.DateTimeField(
db_index=True, default=django.utils.timezone.now, null=True
),
),
(
"realm",