1👍
✅
Your get_queryset
method should return a queryset. You are using get()
, which returns a single instance.
If you only want to display a single item, then, DetailView
would be more suitable than ListView
.
Source:stackexchange.com