make creation date none changeable on save

This commit is contained in:
Matthias 2021-11-29 23:46:41 +01:00
parent d6dc4dd035
commit 2dbb21f8e7
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 19 additions and 3 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.5 on 2021-11-29 22:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('common', '0013_notificationmessage'),
]
operations = [
migrations.AlterField(
model_name='notificationmessage',
name='creation',
field=models.DateTimeField(auto_now_add=True),
),
]

View File

@ -1492,9 +1492,7 @@ class NotificationMessage(models.Model):
)
creation = models.DateTimeField(
auto_now=True,
null=False,
editable=False,
auto_now_add=True,
)
read = models.BooleanField(