Přebytečná HttpResponse
This commit is contained in:
parent
2444e5f985
commit
ca8e8506b3
1 changed files with 2 additions and 2 deletions
|
@ -320,10 +320,10 @@ def profilView(request):
|
|||
user = request.user
|
||||
if not isinstance(user, AnonymousUser) and m.Osoba.objects.filter(user=user).count() != 1:
|
||||
# m.Osoba.objects.get() v ostatních views selže
|
||||
return HttpResponse(render(request, "universal.html", {
|
||||
return render(request, "universal.html", {
|
||||
'title': 'Krize identity.',
|
||||
'raw_html': r'<blockquote>Zvláštní pocit, že jo?<br>[…]<br>Co to znamená?<br>— Že ti MaMweb neumí říct, kdo jsi.<br>A <a href="/admin">Admin</a> ano?<br>— V tom je rozdíl.</blockquote> — Matrix (1999), parafrázováno',
|
||||
}))
|
||||
})
|
||||
if user.has_perm('auth.org'):
|
||||
return OrgoRozcestnikView.as_view()(request)
|
||||
if user.has_perm('auth.resitel'):
|
||||
|
|
Loading…
Reference in a new issue