Namensbug bei Foto behoben
This commit is contained in:
parent
dfbd179238
commit
5c2e3e5e95
Binary file not shown.
Binary file not shown.
|
|
@ -33,7 +33,7 @@ class UsersAddProfileForm(forms.ModelForm):
|
|||
"phonemobile" : "Mobil",
|
||||
"func" : "Agenturfunktion",
|
||||
"compfunc" : "Tätigkeit",
|
||||
"image" : "Agenturbild"
|
||||
"image" : "Profilbild"
|
||||
}
|
||||
fields = ['phoneland','phonemobile','func', 'compfunc', 'image']
|
||||
|
||||
|
|
|
|||
|
|
@ -224,8 +224,8 @@ def ProfileUpdateView(request, pk):
|
|||
|
||||
if profileform_form.is_valid():
|
||||
profileform_form.save()
|
||||
prename = request.user.first_name
|
||||
name = request.user.last_name
|
||||
prename = prof_user.first_name
|
||||
name = prof_user.last_name
|
||||
messages.success(request, f'Daten für {prename} {name} aktualisiert!')
|
||||
# Daten neu laden und nicht die "Mächten sie die Daten speichern...?"
|
||||
return redirect('users-management')
|
||||
|
|
|
|||
Loading…
Reference in New Issue