From f1a2a640e13f9f92960b60c4c2c0fcc1c650fc65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B5=D0=BB=D0=B5=D0=BD=D1=81=D0=BA=D0=B0=D1=8F=20?= =?UTF-8?q?=D0=90=D0=BD=D0=B0=D1=81=D1=82=D0=B0=D1=81=D0=B8=D1=8F=20=D0=9D?= =?UTF-8?q?=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B5=D0=B2=D0=BD=D0=B0?= Date: Tue, 25 Jun 2024 15:19:54 +0300 Subject: [PATCH] admin --- back/tmc/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/back/tmc/models.py b/back/tmc/models.py index b30eb3f..a042e75 100644 --- a/back/tmc/models.py +++ b/back/tmc/models.py @@ -3,10 +3,10 @@ from django.db import models class BaseCustomField(models.Model): name = models.CharField(max_length=120, ) - text = models.TextField(null=True) - scan = models.TextField(null=True) - comment = models.TextField(null=True) - Image = models.ImageField(upload_to='images/', null=True) + text = models.TextField(null=True, blank=True) + scan = models.TextField(null=True, blank=True) + comment = models.TextField(null=True, blank=True) + Image = models.ImageField(upload_to='images/', blank=True, null=True) def __str__(self):