fix bug in check_nickname feature
This commit is contained in:
parent
3fe459dd8d
commit
f000503d79
1 changed files with 4 additions and 3 deletions
|
|
@ -40,11 +40,12 @@ def landingpage(request):
|
|||
try:
|
||||
user = User.objects.get(username=check_nickname)
|
||||
check_nickname = True
|
||||
except:
|
||||
check_nickname = False
|
||||
|
||||
# output as text if requested
|
||||
if request.GET.get('raw', ''):
|
||||
return HttpResponse(check_nickname)
|
||||
except:
|
||||
check_nickname = False
|
||||
|
||||
return render(request, 'base.html', locals())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue