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
Nounous
re2o
Commits
be7f8753
Commit
be7f8753
authored
Jul 13, 2018
by
Hugo LEVY-FALK
Browse files
Fix génération de facture pdf
parent
f158787b
Changes
1
Hide whitespace changes
Inline
Side-by-side
cotisations/views.py
View file @
be7f8753
...
...
@@ -191,11 +191,13 @@ def new_facture_pdf(request):
invoice_form
=
NewFactureFormPdf
(
request
.
POST
or
None
)
if
request
.
user
.
is_class_club
:
articles_formset
=
formset_factory
(
SelectClubArticleForm
)(
request
.
POST
or
None
request
.
POST
or
None
,
form_kwargs
=
{
'user'
:
request
.
user
}
)
else
:
articles_formset
=
formset_factory
(
SelectUserArticleForm
)(
request
.
POST
or
None
request
.
POST
or
None
,
form_kwargs
=
{
'user'
:
request
.
user
}
)
if
invoice_form
.
is_valid
()
and
articles_formset
.
is_valid
():
# Get the article list and build an list out of it
...
...
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