Skip to content

Commit

Permalink
mypage render -> redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
dddooo9 committed Aug 28, 2021
1 parent b66c1fa commit 03d3d69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions users/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.db.models import manager
from django.shortcuts import render
from django.shortcuts import redirect, render
from main.models import Goal

def mypage(request):
Expand Down Expand Up @@ -29,7 +29,7 @@ def mypage_update(request):
user.profile.nickname = request.POST.get('nickname')
user.profile.image = request.FILES.get('image')
user.save()
return render(request, 'users/mypage.html', {'user': user})
return redirect('users:mypage')
return render(request, 'users/mypage_update.html', {'user': user})


Expand Down

0 comments on commit 03d3d69

Please sign in to comment.