Added urgent flag in model
This commit is contained in:
parent
5370395143
commit
ee69baf7de
@ -6,6 +6,7 @@ from django.utils import timezone
|
||||
|
||||
|
||||
class Migration(models.Model):
|
||||
"""This is the migration class"""
|
||||
id = models.CharField(max_length=200, unique=True,
|
||||
default=uuid.uuid4, primary_key=True)
|
||||
submit_time = models.DateField('migrtation submitted on')
|
||||
@ -22,6 +23,7 @@ class Migration(models.Model):
|
||||
additional_domains = models.CharField(
|
||||
max_length=500, null=True, blank=True)
|
||||
migration_type = models.CharField(max_length=200)
|
||||
is_urgent = models.BooleanField(default=False)
|
||||
|
||||
def print_missed_migrations(self):
|
||||
now = timezone.now()
|
||||
|
||||
Reference in New Issue
Block a user