diff --git a/apps/accounts/urls.py b/apps/accounts/urls.py index 44df56e3..c5389f4b 100644 --- a/apps/accounts/urls.py +++ b/apps/accounts/urls.py @@ -9,7 +9,6 @@ UserActivationView, UserRegistrationView, DashboardView, - UserUpdateView, ProviderPortalHomeView, ProviderRequestDetailView, ProviderRequestWizardView, @@ -104,7 +103,6 @@ # include admin URLs path("admin/", admin.urls), # custom views - path("user//", UserUpdateView.as_view(), name="user_edit"), path( "provider-portal/", ProviderPortalHomeView.as_view(), diff --git a/apps/accounts/views.py b/apps/accounts/views.py index 481d3351..7c705c92 100644 --- a/apps/accounts/views.py +++ b/apps/accounts/views.py @@ -163,20 +163,6 @@ def get(self, *args, **kwargs): return HttpResponseRedirect(force_str(self.get_success_url())) -class UserUpdateView(UpdateView): - """ - A view for allowing users to edit basic details, and control - notification settings - """ - - model = User - form_class = UserUpdateForm - - def get(self, request, *args, **kwargs): - """Handle GET requests: instantiate a blank version of the form.""" - return super().get(request, args, kwargs) - - class ProviderPortalHomeView(LoginRequiredMixin, ListView): """ Home page of the Provider Portal: diff --git a/apps/theme/templates/accounts/user_form.html b/apps/theme/templates/accounts/user_form.html deleted file mode 100644 index 63b86073..00000000 --- a/apps/theme/templates/accounts/user_form.html +++ /dev/null @@ -1,30 +0,0 @@ -{% extends "base.html" %} - -{% load widget_tweaks %} -{% load tailwind_filters %} -{% block content %} - -
-
- -

Update your profile, {{ user.username }}

- -
- {% csrf_token %} - {{ form|crispy }} - -
- -
-
- - -{% endblock %} - -