Merge branch 'kerl/unused-deps' into 'master'

Remove useless / unused dependencies

See merge request klub-dev-ens/gestioCOF!366
This commit is contained in:
Ludovic Stephan 2019-10-06 13:50:43 +02:00
commit fb1519cece
2 changed files with 4 additions and 9 deletions

View file

@ -1,8 +1,8 @@
import csv
import uuid
from datetime import timedelta
from smtplib import SMTPRecipientsRefused
import unicodecsv
from custommail.shortcuts import send_custom_mail
from django.contrib import messages
from django.contrib.auth.decorators import login_required
@ -647,7 +647,7 @@ def export_members(request):
response = HttpResponse(content_type="text/csv")
response["Content-Disposition"] = "attachment; filename=membres_cof.csv"
writer = unicodecsv.writer(response)
writer = csv.writer(response)
for profile in CofProfile.objects.filter(is_cof=True).all():
user = profile.user
bits = [
@ -682,7 +682,7 @@ MEGA_ORGA = "Orga"
def csv_export_mega(filename, qs):
response = HttpResponse(content_type="text/csv")
response["Content-Disposition"] = "attachment; filename=" + filename
writer = unicodecsv.writer(response)
writer = csv.writer(response)
for reg in qs.all():
user = reg.user
@ -709,7 +709,7 @@ def export_mega_remarksonly(request):
filename = "remarques_mega_{}.csv".format(MEGA_YEAR)
response = HttpResponse(content_type="text/csv")
response["Content-Disposition"] = "attachment; filename=" + filename
writer = unicodecsv.writer(response)
writer = csv.writer(response)
event = Event.objects.get(title=MEGA_EVENT_NAME)
commentfield = event.commentfields.get(name=MEGA_COMMENTFIELD_NAME)

View file

@ -1,7 +1,6 @@
configparser==3.5.0
Django==2.2.*
django-autocomplete-light==3.3.*
django-autoslug==1.9.3
django-cas-ng==3.6.*
django-djconfig==0.8.0
django-recaptcha==1.4.0
@ -9,7 +8,6 @@ django-redis-cache==1.8.1
icalendar
psycopg2<2.8
Pillow
unicodecsv
django-bootstrap-form==3.3
asgiref==1.1.1
daphne==1.3.0
@ -24,6 +22,3 @@ wagtail==2.4.*
wagtailmenus==2.12.*
wagtail-modeltranslation==0.10.*
django-cors-headers==2.2.0
# Production tools
wheel