ofite/app/website/models/service.py

27 lines
783 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from django.db import models
from django_ckeditor_5.fields import CKEditor5Field
from website.models.base_content_item import BaseContentItem
class Service(BaseContentItem):
description = CKEditor5Field(
'Text',
config_name='extends',
help_text="Введите описание услуги с использованием CKEditor 5."
)
video = models.ForeignKey(
'BackgroundVideo',
on_delete=models.SET_NULL,
blank=True,
null=True,
verbose_name="Фоновое видео",
help_text="Выберите фоновое видео для этой услуги."
)
class Meta:
verbose_name = "Услуга"
verbose_name_plural = "Услуги"
ordering = ['name']