Skip to content
Snippets Groups Projects
Commit 0afd132a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unused variable removed

parent 74442791
No related branches found
No related tags found
1 merge request!336Pylint checks
......@@ -22,7 +22,7 @@ class VoucherPartnerSessionCreateView(CreateView, WrappedView):
success_message = "Voucher partner session added"
def form_valid(self, form):
form.instance.voucher_id = pk = self.kwargs['pk']
form.instance.voucher_id = self.kwargs['pk']
response = super(VoucherPartnerSessionCreateView, self).form_valid(form)
voucher = Voucher.objects.get(pk=self.kwargs['pk'])
if voucher.status == VOUCHER_STATUS_NEW:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment