I'm a beginner with Python and Django and I'm doing a generic menu, I'd like to know how to list in the Django Admin menu-related items in the Menu ModelAdmin
class Menu(models.Model):
menu = models.CharField('Menu', max_length=150)
def __str__(self):
return self.menu
class Item(models.Model):
label = models.CharField('Item', max_length=150)
url = models.CharField('Url', max_length=150)
menu = models.ForeignKey(Menu)
def __str__(self):
return self.label