Fix copypasta

This commit is contained in:
Kumi 2020-06-22 06:36:24 +02:00
parent c15de35a54
commit fbfbc0feeb

View file

@ -32,7 +32,7 @@ class AdminEditView(BackendFormView):
def get_form_kwargs(self): def get_form_kwargs(self):
kwargs = super().get_form_kwargs() 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 return kwargs
def get_initial(self): def get_initial(self):