add tinymce

This commit is contained in:
Timur
2025-03-01 17:23:12 +03:00
parent 332ca694a8
commit c0d4c56736
5 changed files with 30 additions and 8 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
from uuid import uuid4
from django.db import models
from tinymce.models import HTMLField
from apps.competition.models import Competition
from apps.core.models import BaseModel
@@ -19,7 +20,7 @@ class CompetitionTask(BaseModel):
competition = models.ForeignKey(Competition, on_delete=models.CASCADE)
title = models.CharField(verbose_name="заголовок", max_length=50)
description = models.TextField(verbose_name="описание", max_length=300)
description = HTMLField(verbose_name="описание", max_length=300)
max_attemps = models.PositiveSmallIntegerField()
type = models.CharField(
choices=CompetitionTaskType, max_length=8, verbose_name="тип проверки"