From dffb41780ab4da7a5ac9b985ae50e7b423b0a2f4 Mon Sep 17 00:00:00 2001 From: NikDizell Date: Thu, 9 Apr 2026 19:00:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=B5=D0=BB=D0=B0=D0=B5=D0=BC=20=D1=81?= =?UTF-8?q?=D0=BB=D0=B0=D0=B3=20=D0=BE=D0=B1=D1=8F=D0=B7=D0=B0=D1=82=D0=B5?= =?UTF-8?q?=D0=BB=D1=8C=D0=BD=D1=8B=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- programmer/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/programmer/models.py b/programmer/models.py index 303c1bf..d12959e 100644 --- a/programmer/models.py +++ b/programmer/models.py @@ -71,11 +71,10 @@ class Solution(models.Model): is_published = models.BooleanField(default=True, verbose_name='Опубликован') slug = models.SlugField( max_length=255, - unique=False, # временно не уникальное + unique=True, db_index=True, verbose_name='URL-идентификатор', blank=True, - null=True, # разрешаем NULL ) def __str__(self): return self.title