This commit is contained in:
2024-04-12 10:12:56 +03:00
commit 049f11f557
26 changed files with 608 additions and 0 deletions

10
djpro/menu/models.py Normal file
View File

@@ -0,0 +1,10 @@
from django.db import models
class MenuItem(models.Model):
title = models.CharField(max_length=100)
parent = models.ForeignKey('self', on_delete=models.CASCADE, null=True, blank=True, related_name='children')
url = models.CharField(max_length=100, null=True, blank=True)
def __str__(self):
return self.title