From fbfbc0feeba69cc862186ad6918e406f5b311d5e Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Mon, 22 Jun 2020 06:36:24 +0200 Subject: [PATCH] Fix copypasta --- core/views/backend/profiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/views/backend/profiles.py b/core/views/backend/profiles.py index 47472c9..6de4ba5 100644 --- a/core/views/backend/profiles.py +++ b/core/views/backend/profiles.py @@ -32,7 +32,7 @@ class AdminEditView(BackendFormView): def get_form_kwargs(self): kwargs = super().get_form_kwargs() - kwargs.update({'current_email': ClientProfile.objects.get(id=self.kwargs["pk"]).user.username}) + kwargs.update({'current_email': AdminProfile.objects.get(id=self.kwargs["pk"]).user.username}) return kwargs def get_initial(self):