def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context['update_url'] = 'binding-update-view' context['delete_url'] = 'binding-delete-view' binding_pk = self.kwargs.get('pk') context['logout_redirect'] = '/refs/binding/{}'.format(binding_pk) book_quantity_in_cart(self, context) return context
def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) book_quantity_in_cart(self, context) return context
def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context['logout_redirect'] = '/refs/format' book_quantity_in_cart(self, context) return context