How to count and display objects in relation ManyToMany in Django

前端 未结 2 1150
无人共我
无人共我 2021-01-03 09:27

I have a simple model with news and categories:

class Category(models.Model):
    name = models.CharField()
    slug = models.SlugField()

class News(models.         


        
2条回答
提交回复
热议问题