Skip to content
Snippets Groups Projects
Commit abcde291 authored by root's avatar root
Browse files

fixed breaking bugs, still doesn't work

parent 6150dbb4
1 merge request!7Bug fixes & features
...@@ -4,6 +4,7 @@ This file implements the member-facing registration workflow. See ../../README.m ...@@ -4,6 +4,7 @@ This file implements the member-facing registration workflow. See ../../README.m
import subprocess import subprocess
from subprocess import CalledProcessError, TimeoutExpired from subprocess import CalledProcessError, TimeoutExpired
from os import path from os import path
from datetime import datetime
from django.http import HttpResponseRedirect from django.http import HttpResponseRedirect
from django.shortcuts import render from django.shortcuts import render
...@@ -128,7 +129,7 @@ class RenewForm(RegisterRenewForm): ...@@ -128,7 +129,7 @@ class RenewForm(RegisterRenewForm):
def save(self, commit=True): def save(self, commit=True):
m, ms = super().save(commit=False) m, ms = super().save(commit=False)
m.username = self.request.user.username m.username = self.request.user.username
if ms.date_paid is None and ms.payment_method is None: if ms.date_paid is None and (ms.payment_method is None or ms.payment_method == ''):
paid = has_paid_dispense(ms) paid = has_paid_dispense(ms)
if paid is not None: if paid is not None:
ms.date_paid = paid ms.date_paid = paid
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment