No need for select_related on an actual object.
This commit is contained in:
parent
c4a907890c
commit
ce534cff55
|
@ -77,9 +77,7 @@ class EpayView(TemplateView):
|
|||
template_name = 'tickets/epay_form.html'
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
ticket = Ticket.objects.get(
|
||||
pk=kwargs.get('ticket_id')
|
||||
).select_related('ticket_type')
|
||||
ticket = Ticket.objects.get(pk=kwargs.get('ticket_id'))
|
||||
accept_url = ticket.get_absolute_url()
|
||||
amount = ticket.ticket_type.price * 100
|
||||
order_id = str(ticket.pk)
|
||||
|
|
Loading…
Reference in a new issue