mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
make creation date none changeable on save
This commit is contained in:
parent
d6dc4dd035
commit
2dbb21f8e7
@ -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),
|
||||||
|
),
|
||||||
|
]
|
@ -1492,9 +1492,7 @@ class NotificationMessage(models.Model):
|
|||||||
)
|
)
|
||||||
|
|
||||||
creation = models.DateTimeField(
|
creation = models.DateTimeField(
|
||||||
auto_now=True,
|
auto_now_add=True,
|
||||||
null=False,
|
|
||||||
editable=False,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
read = models.BooleanField(
|
read = models.BooleanField(
|
||||||
|
Loading…
Reference in New Issue
Block a user