Remove unused variable

This commit is contained in:
PCoder 2018-07-05 20:34:57 +02:00
parent baa2817f57
commit 6b663d82a1

View file

@ -282,10 +282,8 @@ class PaymentOrderView(FormView):
)
if address_form.is_valid():
token = address_form.cleaned_data.get('token')
owner = self.request.user
if token is '':
card_id = address_form.cleaned_data.get('card')
customer = owner.stripecustomer
try:
user_card_detail = UserCardDetail.objects.get(id=card_id)
if not request.user.has_perm(