diff --git a/accounts/utils.py b/accounts/utils.py index 3657064..8854676 100644 --- a/accounts/utils.py +++ b/accounts/utils.py @@ -7,11 +7,11 @@ def generate_user_uid(): def is_orga(request, user): - return user.is_authenticated() and user.participation_set.get(site=get_current_site(request)).is_orga() + return user.is_authenticated and user.participation_set.get(site=get_current_site(request)).is_orga() def is_staff(request, user): - return user.is_authenticated() and user.participation_set.get(site=get_current_site(request)).is_staff() + return user.is_authenticated and user.participation_set.get(site=get_current_site(request)).is_staff() def can_edit_profile(request, profile): diff --git a/requirements.txt b/requirements.txt index 61c905a..df32d05 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -django<1.10 +django<1.11 django-autoslug django-bootstrap3 django-bower