Home > Software design >  view function not rendering data on fron
view function not rendering data on fron

Time:11-24

I am getting error ro unpack(2).

models.py

class Min

CodePudding user response:

TemplateView uses extra_context and not extra_content so just change:

extra_content = {'ticket_type': Ticket.objects.all() }

to:

extra_context = {'ticket_type': Ticket.objects.all() }
  • Related