mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-26 02:54:20 +00:00
core: remove default value for OperationLog
This commit is contained in:
parent
e634cda318
commit
1c03ce621f
@ -1,4 +1,4 @@
|
|||||||
# Generated by Django 2.2.6 on 2019-11-13 21:17
|
# Generated by Django 2.2.6 on 2019-11-14 15:10
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
@ -33,7 +33,6 @@ class Migration(migrations.Migration):
|
|||||||
("SELLING_DELETION", "Selling deletion"),
|
("SELLING_DELETION", "Selling deletion"),
|
||||||
("REFILLING_DELETION", "Refilling deletion"),
|
("REFILLING_DELETION", "Refilling deletion"),
|
||||||
],
|
],
|
||||||
default="SELLING_DELETION",
|
|
||||||
max_length=40,
|
max_length=40,
|
||||||
verbose_name="operation type",
|
verbose_name="operation type",
|
||||||
),
|
),
|
||||||
|
@ -1467,10 +1467,7 @@ class OperationLog(models.Model):
|
|||||||
User, related_name="logs", on_delete=models.SET_NULL, null=True
|
User, related_name="logs", on_delete=models.SET_NULL, null=True
|
||||||
)
|
)
|
||||||
operation_type = models.CharField(
|
operation_type = models.CharField(
|
||||||
_("operation type"),
|
_("operation type"), max_length=40, choices=settings.SITH_LOG_OPERATION_TYPE,
|
||||||
max_length=40,
|
|
||||||
choices=settings.SITH_LOG_OPERATION_TYPE,
|
|
||||||
default=settings.SITH_LOG_OPERATION_TYPE[0][0],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
def is_owned_by(self, user):
|
def is_owned_by(self, user):
|
||||||
|
Loading…
Reference in New Issue
Block a user