diff --git a/assets/js/application.js b/assets/js/application.js index 68813a839..9a29ac63e 100644 --- a/assets/js/application.js +++ b/assets/js/application.js @@ -7,8 +7,8 @@ require.context("govuk-frontend/govuk/assets"); require.context( "@ministryofjustice/frontend/moj/assets" ); -import govukFrontend from "govuk-frontend"; +import {initAll} from "govuk-frontend"; import mojFrontend from "@ministryofjustice/frontend"; -govukFrontend.initAll(); +initAll(); mojFrontend.initAll(); diff --git a/src/peoplefinder/forms/profile_edit.py b/src/peoplefinder/forms/profile_edit.py index cd132d8ff..db940a75c 100644 --- a/src/peoplefinder/forms/profile_edit.py +++ b/src/peoplefinder/forms/profile_edit.py @@ -4,11 +4,7 @@ from django.core.validators import ValidationError from django.template import Context, Template -from peoplefinder.forms.profile import ( - GovUkRadioSelect, - GroupedModelChoiceField, - ProfileForm, -) +from peoplefinder.forms.profile import GovUkRadioSelect, GroupedModelChoiceField from peoplefinder.forms.role import RoleForm from peoplefinder.models import Person, UkStaffLocation diff --git a/src/peoplefinder/test/views/test_profile_views.py b/src/peoplefinder/test/views/test_profile_views.py index 71bf4c622..470484798 100644 --- a/src/peoplefinder/test/views/test_profile_views.py +++ b/src/peoplefinder/test/views/test_profile_views.py @@ -9,7 +9,6 @@ from django.urls import reverse from pytest_django.asserts import assertContains -from peoplefinder.forms.profile import ProfileForm from peoplefinder.models import Person, Team from peoplefinder.services.person import PersonService from peoplefinder.test.factories import TeamFactory @@ -244,6 +243,7 @@ def test_cannot_be_own_manager(state): def test_profile_edit_view(state): + assert False view_url = reverse( "profile-edit", kwargs={ diff --git a/src/peoplefinder/views/profile.py b/src/peoplefinder/views/profile.py index 75ebbf2c8..33027ed6e 100644 --- a/src/peoplefinder/views/profile.py +++ b/src/peoplefinder/views/profile.py @@ -24,11 +24,7 @@ from django.views.generic.detail import DetailView, SingleObjectMixin from django.views.generic.edit import FormView, UpdateView -from peoplefinder.forms.profile import ( - ProfileForm, - ProfileLeavingDitForm, - ProfileUpdateUserForm, -) +from peoplefinder.forms.profile import ProfileLeavingDitForm, ProfileUpdateUserForm from peoplefinder.forms.profile_edit import ( PersonalProfileAdminForm, PersonalProfileContactForm,