Добавил разделение баз данных. Ну и первая попытка настроить деплой
Some checks failed
Auto-Deploy-prodman / deploy (push) Failing after 1s
Some checks failed
Auto-Deploy-prodman / deploy (push) Failing after 1s
This commit is contained in:
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user