mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-11-20 16:47:53 +00:00
add tinymce
This commit is contained in:
1 parent
332ca694a8
commit
c0d4c56736
5 files changed
+30
-8
No files matched your search
@@ -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="тип проверки"
|
||||
|
||||
Reference in new issue
Block a user