Skip to content

Commit

Permalink
Remove unused imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
amanning9 committed May 31, 2023
1 parent 3b56686 commit 5e676d4
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 19 deletions.
1 change: 0 additions & 1 deletion jasmin_services/api/serializers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Serializers for the jasmin_services api."""
import collections

import django.contrib.auth
import django_countries.serializers
Expand Down
1 change: 0 additions & 1 deletion jasmin_services/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import django.contrib.auth
import django.db.models as dj_models
import django.utils.timezone
import drf_spectacular.types
import drf_spectacular.utils
import jasmin_django_utils.api.viewsets
import rest_framework.decorators as rf_decorators
Expand Down
3 changes: 0 additions & 3 deletions jasmin_services/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ def admin_message_form_factory(service):
)


from django.contrib.admin.sites import site


class AdminGrantForm(forms.ModelForm):
class Meta:
model = Grant
Expand Down
2 changes: 0 additions & 2 deletions jasmin_services/migrations/0003_add_ldap_model_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# Generated by Django 1.10.5 on 2017-02-21 15:39
from __future__ import unicode_literals

import django.core.validators
import jasmin_ldap_django.models
from django.conf import settings
from django.db import migrations, models

Expand Down
2 changes: 0 additions & 2 deletions jasmin_services/migrations/0005_remove_group_dn_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# Generated by Django 1.10.5 on 2017-02-21 15:59
from __future__ import unicode_literals

import django.core.validators
import jasmin_ldap_django.models
from django.db import migrations


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Generated by Django 2.0.6 on 2018-06-11 15:17

import django.core.validators
import django.db.models.deletion
from django.db import migrations, models

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Generated by Django 2.0.6 on 2018-06-11 15:23

import django.core.validators
import django.db.models.deletion
from django.db import migrations, models

Expand Down
2 changes: 0 additions & 2 deletions jasmin_services/migrations/0010_auto_20190916_1328.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Generated by Django 2.2.5 on 2019-09-16 12:28

import django.core.validators
import jasmin_ldap_django.models
from django.db import migrations, models


Expand Down
6 changes: 3 additions & 3 deletions jasmin_services/models/behaviours/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

import django.conf

from .base import Behaviour
from .ldap import Group, LdapGroupBehaviour, LdapTagBehaviour
from .mail import JoinJISCMailListBehaviour
from .base import Behaviour # unimport:skip
from .ldap import Group, LdapGroupBehaviour, LdapTagBehaviour # unimport:skip
from .mail import JoinJISCMailListBehaviour # unimport:skip

__all__ = []
logger = logging.getLogger(__name__)
Expand Down
1 change: 0 additions & 1 deletion jasmin_services/models/behaviours/ldap.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Behavious to apply changes to LDAP."""
import importlib

import django.conf
import django.core.exceptions
import django.core.validators
import django.db.models
Expand Down
2 changes: 0 additions & 2 deletions jasmin_services/templatetags/service_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
__author__ = "Matt Pryor"
__copyright__ = "Copyright 2015 UK Science and Technology Facilities Council"

from datetime import date

from django import template

from ..models import Request, RequestState
Expand Down

0 comments on commit 5e676d4

Please sign in to comment.