Portal/rsconcept/backend/apps/rsform/models/LibraryTemplate.py
2024-07-22 21:20:17 +03:00

18 lines
473 B
Python

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