add back timezone as it was required
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
from django.db import models
|
||||
|
||||
from django.utils import timezone
|
||||
|
||||
|
||||
class Schedule_Week_Data(models.Model):
|
||||
name_schedule = models.CharField(max_length=100,unique=True)
|
||||
state_Monday = models.BooleanField()
|
||||
@@ -55,7 +52,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', default=timezone.now())
|
||||
do_not_touch_until = models.DateTimeField('do_not_touch_until', blank=True, null=True, auto_now_add=True)
|
||||
class Meta:
|
||||
db_table = 'machine'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user