This commit is contained in:
Trullemans Gregory 2020-11-01 16:41:17 +01:00
parent b73158debc
commit 461d667f59
1 changed files with 3 additions and 0 deletions

View File

@ -69,6 +69,9 @@ def profile_update(request, profileid):
profile = get_object_or_404(Profile, pk=profileid)
if profile.user != request.user:
raise PermissionDenied("Permission denied : you don't have the permission to update this profile.")
if request.method == "POST":
form = ProfileForm(request.POST, instance=profile)