Linting
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
e2679cf5e8
commit
cf561c4584
|
@ -17,6 +17,7 @@ from django.utils.translation import gettext_lazy as _
|
||||||
from registration.models import VolunteerRegistration
|
from registration.models import VolunteerRegistration
|
||||||
from tfjm.lists import get_sympa_client
|
from tfjm.lists import get_sympa_client
|
||||||
|
|
||||||
|
|
||||||
def get_motivation_letter_filename(instance, filename):
|
def get_motivation_letter_filename(instance, filename):
|
||||||
return f"authorization/motivation_letters/motivation_letter_{instance.trigram}"
|
return f"authorization/motivation_letters/motivation_letter_{instance.trigram}"
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@ from django.contrib.auth.models import User
|
||||||
from django.contrib.contenttypes.models import ContentType
|
from django.contrib.contenttypes.models import ContentType
|
||||||
from django.contrib.sites.models import Site
|
from django.contrib.sites.models import Site
|
||||||
from django.core.files.uploadedfile import SimpleUploadedFile
|
from django.core.files.uploadedfile import SimpleUploadedFile
|
||||||
from django.core.management import call_command
|
|
||||||
from django.test import TestCase
|
from django.test import TestCase
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from django.utils.encoding import force_bytes
|
from django.utils.encoding import force_bytes
|
||||||
|
|
Loading…
Reference in New Issue