Portal/rsconcept/backend/apps/library/models/LibraryTemplate.py
Ivan 31195cdd60
Some checks failed
Backend CI / build (3.12) (push) Has been cancelled
Frontend CI / build (22.x) (push) Has been cancelled
R: Improve backend type hints, linting and package locks
2024-09-12 21:10:05 +03:00

17 lines
448 B
Python

''' Models: LibraryTemplate. '''
from django.db.models import CASCADE, ForeignKey, Model
class LibraryTemplate(Model):
''' Template for library items and constituents. '''
lib_source = ForeignKey(
verbose_name='Источник',
to='library.LibraryItem',
on_delete=CASCADE
)
class Meta:
''' Model metadata. '''
verbose_name = 'Шаблон'
verbose_name_plural = 'Шаблоны'