[Fixed]-Django model with list of items

1👍

The first allows a Contact to belong to more than one Person. The second only allows a Contact to belong to a single Person.

0👍

****** write the below code in the your views.py file

def my_view(request):
all_categories = Category.objects.all()

******write the below code in the HTML File

{% for category in all_categories %}

Leave a comment