django-views-cbv-5

Last Updated :
Discuss
Comments

In ListView, what shows all items from a model?

pk = 1

form = PostForm()

object_list = ['item']

queryset = Post.objects.all()

Tags:
Share your thoughts in the comments