python - how to use multiple models in one view django? -


actually guys, don't know if thats correct, told me django limitless, so...

in views.py

class selfielist(listview):     template_name = "selfielist.html"     model = selfie, outfit 

can posible?

this not possible. listview accepts 1 model , performs model.objects.all() in self.get_queryset() method. 1 thing can inherit view , pass querysets of multiple models context data


Comments