Compare commits
No commits in common. "69019baf4e650b16ccbf0d6d3c992752e877d65d" and "ec474530e48cc8fa02510e06cc05561feb9d4aef" have entirely different histories.
69019baf4e
...
ec474530e4
1 changed files with 1 additions and 7 deletions
|
@ -4,7 +4,7 @@ from django.views import generic
|
|||
from django.db.models import Q, Count, Min
|
||||
from django.views.decorators.debug import sensitive_post_parameters
|
||||
from django.views.generic.base import TemplateView
|
||||
from django.contrib.auth.models import User, Permission, Group, AnonymousUser
|
||||
from django.contrib.auth.models import User, Permission, Group
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
from django.db import transaction
|
||||
from django.http import HttpResponse
|
||||
|
@ -318,12 +318,6 @@ def prihlaskaView(request):
|
|||
# Jen hloupé rozhazovátko
|
||||
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 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