forked from DGNum/gestioCOF
PEP8: Forgot a few binops
This commit is contained in:
parent
6d68f6638f
commit
483ddf0f86
6 changed files with 17 additions and 18 deletions
|
@ -7,8 +7,8 @@ from django.apps import apps
|
|||
def export(qs, fields=None):
|
||||
model = qs.model
|
||||
response = HttpResponse(content_type='text/csv')
|
||||
response['Content-Disposition'] = 'attachment; filename=%s.csv' %\
|
||||
slugify(model.__name__)
|
||||
response['Content-Disposition'] = 'attachment; filename=%s.csv' \
|
||||
% slugify(model.__name__)
|
||||
writer = csv.writer(response)
|
||||
# Write headers to CSV file
|
||||
if fields:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue