Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UCC
uccportal
Commits
a2dfa2b1
Commit
a2dfa2b1
authored
Jan 28, 2019
by
frekk
Browse files
fix get_membership_choices
parent
7dfa6f54
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/memberdb/models.py
View file @
a2dfa2b1
...
...
@@ -69,8 +69,12 @@ def get_membership_choices(is_renew=None, get_prices=True):
# so this option is only displayed on the renewal form
continue
else
:
price
=
get_item_price
(
val
[
'dispense'
])
if
(
get_prices
and
price
is
not
None
):
if
get_prices
:
price
=
get_item_price
(
val
[
'dispense'
])
else
:
price
=
None
if
price
is
not
None
:
desc
=
"%s ($%1.2f)"
%
(
val
[
'desc'
],
price
/
100.0
)
choices
+=
[(
key
,
desc
)]
else
:
...
...
Write
Preview
Supports
Markdown
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