forked from DGNum/gestioCOF
Remove useless / unused dependencies
- unicodecsv is useless in py3 - autoslug is not used anywhere - wheels comes with any correctly configured virtualenv
This commit is contained in:
parent
b99fd03df2
commit
838bf325ba
2 changed files with 4 additions and 9 deletions
|
@ -1,8 +1,8 @@
|
||||||
|
import csv
|
||||||
import uuid
|
import uuid
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from smtplib import SMTPRecipientsRefused
|
from smtplib import SMTPRecipientsRefused
|
||||||
|
|
||||||
import unicodecsv
|
|
||||||
from custommail.shortcuts import send_custom_mail
|
from custommail.shortcuts import send_custom_mail
|
||||||
from django.contrib import messages
|
from django.contrib import messages
|
||||||
from django.contrib.auth.decorators import login_required
|
from django.contrib.auth.decorators import login_required
|
||||||
|
@ -646,7 +646,7 @@ def export_members(request):
|
||||||
response = HttpResponse(content_type="text/csv")
|
response = HttpResponse(content_type="text/csv")
|
||||||
response["Content-Disposition"] = "attachment; filename=membres_cof.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():
|
for profile in CofProfile.objects.filter(is_cof=True).all():
|
||||||
user = profile.user
|
user = profile.user
|
||||||
bits = [
|
bits = [
|
||||||
|
@ -681,7 +681,7 @@ MEGA_ORGA = "Orga"
|
||||||
def csv_export_mega(filename, qs):
|
def csv_export_mega(filename, qs):
|
||||||
response = HttpResponse(content_type="text/csv")
|
response = HttpResponse(content_type="text/csv")
|
||||||
response["Content-Disposition"] = "attachment; filename=" + filename
|
response["Content-Disposition"] = "attachment; filename=" + filename
|
||||||
writer = unicodecsv.writer(response)
|
writer = csv.writer(response)
|
||||||
|
|
||||||
for reg in qs.all():
|
for reg in qs.all():
|
||||||
user = reg.user
|
user = reg.user
|
||||||
|
@ -708,7 +708,7 @@ def export_mega_remarksonly(request):
|
||||||
filename = "remarques_mega_{}.csv".format(MEGA_YEAR)
|
filename = "remarques_mega_{}.csv".format(MEGA_YEAR)
|
||||||
response = HttpResponse(content_type="text/csv")
|
response = HttpResponse(content_type="text/csv")
|
||||||
response["Content-Disposition"] = "attachment; filename=" + filename
|
response["Content-Disposition"] = "attachment; filename=" + filename
|
||||||
writer = unicodecsv.writer(response)
|
writer = csv.writer(response)
|
||||||
|
|
||||||
event = Event.objects.get(title=MEGA_EVENT_NAME)
|
event = Event.objects.get(title=MEGA_EVENT_NAME)
|
||||||
commentfield = event.commentfields.get(name=MEGA_COMMENTFIELD_NAME)
|
commentfield = event.commentfields.get(name=MEGA_COMMENTFIELD_NAME)
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
configparser==3.5.0
|
configparser==3.5.0
|
||||||
Django==2.2.*
|
Django==2.2.*
|
||||||
django-autocomplete-light==3.3.*
|
django-autocomplete-light==3.3.*
|
||||||
django-autoslug==1.9.3
|
|
||||||
django-cas-ng==3.6.*
|
django-cas-ng==3.6.*
|
||||||
django-djconfig==0.8.0
|
django-djconfig==0.8.0
|
||||||
django-recaptcha==1.4.0
|
django-recaptcha==1.4.0
|
||||||
|
@ -9,7 +8,6 @@ django-redis-cache==1.8.1
|
||||||
icalendar
|
icalendar
|
||||||
psycopg2<2.8
|
psycopg2<2.8
|
||||||
Pillow
|
Pillow
|
||||||
unicodecsv
|
|
||||||
django-bootstrap-form==3.3
|
django-bootstrap-form==3.3
|
||||||
asgiref==1.1.1
|
asgiref==1.1.1
|
||||||
daphne==1.3.0
|
daphne==1.3.0
|
||||||
|
@ -24,6 +22,3 @@ wagtail==2.4.*
|
||||||
wagtailmenus==2.12.*
|
wagtailmenus==2.12.*
|
||||||
wagtail-modeltranslation==0.10.*
|
wagtail-modeltranslation==0.10.*
|
||||||
django-cors-headers==2.2.0
|
django-cors-headers==2.2.0
|
||||||
|
|
||||||
# Production tools
|
|
||||||
wheel
|
|
||||||
|
|
Loading…
Reference in a new issue