Skip to content
This repository has been archived by the owner on Jun 3, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' into deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
shao0099876 committed Apr 21, 2019
2 parents 12801f5 + 652c222 commit 479fa5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AmyYoga/AmyYoga/superuser_message/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ def superusermessage(request):
user_list = models.PersonalInformation.objects.all()
return render(request, 'vipmessage.html', locals())

def moremessage(request, user):
def moremessage(request, username):
if SessionManager.isLogouted(request):
return HttpResponseRedirect("/login/")
if not SessionManager.isAdministrator(request):
return HttpResponseRedirect("/")
user_list = models.PersonalInformation.objects.filter(username=user)
user_list = models.PersonalInformation.objects.filter(username=username)
#return HttpResponse(user)
return render(request, 'moremessage.html',locals() )

0 comments on commit 479fa5e

Please sign in to comment.