This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from django.db import models
|
||||
|
||||
|
||||
from django.utils import timezone
|
||||
|
||||
|
||||
class Schedule_Week_Data(models.Model):
|
||||
@@ -55,7 +55,7 @@ class Deployment_Data(models.Model):
|
||||
schedule_day = models.ForeignKey(Schedule_Day_Data,null=True, blank=True, on_delete=models.SET_NULL)
|
||||
replicas = models.IntegerField()
|
||||
actual_replica = models.IntegerField()
|
||||
do_not_touch_until = models.DateTimeField('do_not_touch_until', blank=True, null=True, auto_now_add=True)
|
||||
do_not_touch_until = models.DateTimeField('do_not_touch_until', default=timezone.now())
|
||||
class Meta:
|
||||
db_table = 'machine'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user