Добавил разделение баз данных. Ну и первая попытка настроить деплой
Some checks failed
Auto-Deploy-prodman / deploy (push) Failing after 1s

This commit is contained in:
2026-02-14 23:20:44 +03:00
parent e77237ca5e
commit 97c187ac97
9 changed files with 172 additions and 13 deletions

View File

@@ -13,8 +13,8 @@ class BaseOperation(PolymorphicModel):
class Meta:
ordering = ['order']
verbose_name = "Операция"
verbose_name_plural = "Операции"
verbose_name = "Технологическая операция"
verbose_name_plural = "Технологический маршрут"
def __str__(self):
return f"{self.order}. {self._meta.verbose_name}"
@@ -35,6 +35,8 @@ class LaserCutSheet(BaseOperation):
pierces = models.IntegerField("Количество проколов", default=1)
dxf_file = models.FileField("DXF файл", upload_to='dxf_files/%Y/%m', null=True, blank=True)
#todo: добавить использование азота
def clean(self):
if self.cut_length < 1:
raise ValidationError("Длина реза должна быть больше 0!")