diff --git a/logs/tests/test_templates.py b/logs/tests/test_templates.py index 9c6b0e9..d953ff5 100644 --- a/logs/tests/test_templates.py +++ b/logs/tests/test_templates.py @@ -3,7 +3,6 @@ from django.test import TestCase from django.urls import reverse - from users.models import User """ diff --git a/logs/views.py b/logs/views.py index 4eac1a9..0b45c67 100644 --- a/logs/views.py +++ b/logs/views.py @@ -9,7 +9,6 @@ from django.db.models import Count from django.shortcuts import render from django.utils.translation import gettext_lazy as _ from reversion.models import Revision - from med.settings import PAGINATION_NUMBER from users.models import User diff --git a/media/admin.py b/media/admin.py index 3ecbab2..bffb4a1 100644 --- a/media/admin.py +++ b/media/admin.py @@ -6,10 +6,9 @@ from django.urls import reverse from django.utils.html import format_html from django.utils.translation import ugettext_lazy as _ from reversion.admin import VersionAdmin - from med.admin import admin_site -from .forms import MediaAdminForm -from .models import Auteur, BD, CD, Emprunt, FutureMedia, Jeu, Manga,\ +from media.forms import MediaAdminForm +from media.models import Auteur, BD, CD, Emprunt, FutureMedia, Jeu, Manga,\ Revue, Roman, Vinyle diff --git a/media/management/commands/import_cds.py b/media/management/commands/import_cds.py index d783a12..3498958 100644 --- a/media/management/commands/import_cds.py +++ b/media/management/commands/import_cds.py @@ -2,7 +2,6 @@ from argparse import FileType from sys import stdin from django.core.management import BaseCommand - from media.models import Auteur, CD diff --git a/media/management/commands/import_future_media.py b/media/management/commands/import_future_media.py index 3e39022..d028b4e 100644 --- a/media/management/commands/import_future_media.py +++ b/media/management/commands/import_future_media.py @@ -2,7 +2,6 @@ from time import sleep from django.core.exceptions import ValidationError from django.core.management import BaseCommand - from media.forms import MediaAdminForm from media.models import BD, FutureMedia, Manga, Roman diff --git a/media/management/commands/import_isbn.py b/media/management/commands/import_isbn.py index 9db98cb..c7bd893 100644 --- a/media/management/commands/import_isbn.py +++ b/media/management/commands/import_isbn.py @@ -3,7 +3,6 @@ from sys import stdin from django.core.exceptions import ValidationError from django.core.management import BaseCommand - from media.models import BD, FutureMedia, Manga, Roman from media.validators import isbn_validator diff --git a/media/management/commands/import_no_isbn_roman.py b/media/management/commands/import_no_isbn_roman.py index 5e822fc..64d5811 100644 --- a/media/management/commands/import_no_isbn_roman.py +++ b/media/management/commands/import_no_isbn_roman.py @@ -4,7 +4,6 @@ from argparse import FileType from sys import stdin from django.core.management import BaseCommand - from media.models import Auteur, Roman diff --git a/media/management/commands/import_vinyles.py b/media/management/commands/import_vinyles.py index dc64372..029fbff 100644 --- a/media/management/commands/import_vinyles.py +++ b/media/management/commands/import_vinyles.py @@ -2,7 +2,6 @@ from argparse import FileType from sys import stdin from django.core.management import BaseCommand - from media.models import Auteur, Vinyle diff --git a/media/management/commands/split_media_types.py b/media/management/commands/split_media_types.py index 823009a..fe7fd7d 100644 --- a/media/management/commands/split_media_types.py +++ b/media/management/commands/split_media_types.py @@ -1,7 +1,6 @@ from time import sleep from django.core.management import BaseCommand - from media.forms import MediaAdminForm from media.models import BD, Manga diff --git a/media/scraper.py b/media/scraper.py index 84de5a8..0026d61 100644 --- a/media/scraper.py +++ b/media/scraper.py @@ -4,7 +4,6 @@ import re import requests - from media.models import Auteur diff --git a/media/tests/test_templates.py b/media/tests/test_templates.py index c103359..bdea46d 100644 --- a/media/tests/test_templates.py +++ b/media/tests/test_templates.py @@ -3,7 +3,6 @@ from django.test import TestCase from django.urls import reverse - from media.models import Auteur, BD from users.models import User diff --git a/users/admin.py b/users/admin.py index effd1c0..6332258 100644 --- a/users/admin.py +++ b/users/admin.py @@ -10,10 +10,9 @@ from django.urls import reverse from django.utils.html import format_html from django.utils.translation import ugettext_lazy as _ from reversion.admin import VersionAdmin - from med.admin import admin_site -from .forms import UserCreationAdminForm -from .models import Adhesion, User +from users.forms import UserCreationAdminForm +from users.models import Adhesion, User class AdhesionAdmin(VersionAdmin): diff --git a/users/models.py b/users/models.py index e333b58..bdd5092 100644 --- a/users/models.py +++ b/users/models.py @@ -6,7 +6,6 @@ from django.contrib.auth.models import AbstractUser from django.db import models from django.utils import timezone from django.utils.translation import gettext_lazy as _ - from med.settings import MAX_EMPRUNT diff --git a/users/tests/test_templates.py b/users/tests/test_templates.py index 1a8b9c9..f94e9b7 100644 --- a/users/tests/test_templates.py +++ b/users/tests/test_templates.py @@ -4,7 +4,6 @@ from django.core import mail from django.test import TestCase from django.urls import reverse - from users.models import User """ diff --git a/users/views.py b/users/views.py index 08e8238..cd65089 100644 --- a/users/views.py +++ b/users/views.py @@ -11,10 +11,9 @@ from django.template.context_processors import csrf from django.utils.translation import ugettext_lazy as _ from rest_framework import viewsets from reversion import revisions as reversion - from users.forms import BaseInfoForm from users.models import Adhesion, User -from .serializers import GroupSerializer, UserSerializer +from users.serializers import GroupSerializer, UserSerializer def form(ctx, template, request):