forked from AFPy/PonyConf
Django 1.10 is out
This commit is contained in:
parent
e7d26b6dde
commit
0bde350b15
|
@ -7,11 +7,11 @@ def generate_user_uid():
|
||||||
|
|
||||||
|
|
||||||
def is_orga(request, user):
|
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):
|
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):
|
def can_edit_profile(request, profile):
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
django<1.10
|
django<1.11
|
||||||
django-autoslug
|
django-autoslug
|
||||||
django-bootstrap3
|
django-bootstrap3
|
||||||
django-bower
|
django-bower
|
||||||
|
|
Loading…
Reference in New Issue
Block a user