add back timezone as it was required
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s

This commit is contained in:
pierre.geeraert
2026-09-14 15:46:51 +01:00
parent f6875b498b
commit 712f3d50b5
4 changed files with 57 additions and 4 deletions
+1 -4
View File
@@ -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'