Hello,
I have 3 modules:
Category:
name = models.CharField(max_length=120,default='no name')
Product:
name = models.CharField(max_length=120, default='no name')
image = models.ImageField(upload_to=settings.MEDIA_ROOT)
category = models.ForeignKey(Category, on_delete=models.CASCADE, default=None)
and an Albom:
name = models.CharField(max_length=120)
products = models.ManyToManyField(to=Product)
when I edit an albom throth the admin page it looks like this:
I want to show not only the
__str__
in the products horizontal_filter
but allso the category and even filter by category. Is it possible? and if so, how would I do somthing like this?Thank you! and sorry if it’s not the place, I’m new to Django