Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pole-Web
Website
Commits
33ab592c
Commit
33ab592c
authored
Oct 22, 2021
by
VAN ZUIJLEN Nils
Browse files
Merge branch '67-bde-type-csv' into 'master'
Fix for issue
#67
Closes
#67
See merge request
!64
parents
5ad9cc0e
5be2a0aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
bde/views.py
View file @
33ab592c
...
...
@@ -170,7 +170,7 @@ def export_contributors(request):
response
[
"Content-Disposition"
]
=
'attachment; filename="cotisants.csv"'
writer
=
csv
.
writer
(
response
)
writer
.
writerow
([
"Login"
,
"Surnom"
,
"Prénom"
,
"Nom"
,
"Mail"
,
"Début"
,
"Fin"
])
writer
.
writerow
([
"Login"
,
"Surnom"
,
"Prénom"
,
"Nom"
,
"Mail"
,
"Type"
,
"Début"
,
"Fin"
])
for
user
in
users
:
line
=
[
user
.
profile
.
user
,
...
...
@@ -178,6 +178,7 @@ def export_contributors(request):
user
.
first_name
,
user
.
last_name
,
user
.
email
,
user
.
contribution
.
type
,
user
.
contribution
.
start_date
,
user
.
contribution
.
end_date
,
]
...
...
MOREAU Ulysse
@ulysse.moreau
·
Oct 22, 2021
Owner
Ah bah ÇA, c'est une MR unitaire
😆
Ah bah ÇA, c'est une MR unitaire :laughing:
😆
1
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