super fix

This commit is contained in:
Thomas Steen Rasmussen 2016-05-13 08:50:04 +02:00
parent fabc583193
commit c8cf189156

View file

@ -17,7 +17,7 @@ class ShopIndexView(ListView):
template_name = "shop_index.html" template_name = "shop_index.html"
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
context = super(EpayView, self).get_context_data(**kwargs) context = super(ShopIndexView, self).get_context_data(**kwargs)
context['orders'] = Order.objects.filter(user=self.request.user) context['orders'] = Order.objects.filter(user=self.request.user)
return context return context
@ -136,7 +136,7 @@ class CoinifyRedirectView(TemplateView):
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
order = Order.objects.get(pk=kwargs.get('order_id')) order = Order.objects.get(pk=kwargs.get('order_id'))
context = super(CoinifyView, self).get_context_data(**kwargs) context = super(CoinifyRedirectView, self).get_context_data(**kwargs)
context['order'] = order context['order'] = order
### Initiate coinify API and create invoice ### Initiate coinify API and create invoice