Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UCC
uccportal
Commits
abcde291
Commit
abcde291
authored
Feb 26, 2019
by
root
Browse files
fixed breaking bugs, still doesn't work
parent
6150dbb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/memberdb/register.py
View file @
abcde291
...
...
@@ -4,6 +4,7 @@ This file implements the member-facing registration workflow. See ../../README.m
import
subprocess
from
subprocess
import
CalledProcessError
,
TimeoutExpired
from
os
import
path
from
datetime
import
datetime
from
django.http
import
HttpResponseRedirect
from
django.shortcuts
import
render
...
...
@@ -128,7 +129,7 @@ class RenewForm(RegisterRenewForm):
def
save
(
self
,
commit
=
True
):
m
,
ms
=
super
().
save
(
commit
=
False
)
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
)
if
paid
is
not
None
:
ms
.
date_paid
=
paid
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment