0.0.12 services for section

This commit is contained in:
SDE
2023-11-26 20:00:54 +03:00
parent 7acde9d0bd
commit f39cf990c5
5 changed files with 50 additions and 23 deletions

View File

@@ -9,6 +9,9 @@ class Section(BaseModelViewPage):
class Service(BaseModelViewPage):
url = models.TextField(verbose_name=_('URL привязанной страницы'), null=True, blank=True)
section = models.ForeignKey(
Section, verbose_name=_('Раздел'),
on_delete=models.SET_NULL, related_name='rel_services_for_section',