user.get_profile()->user.profile

This commit is contained in:
j 2016-02-19 22:04:15 +05:30
commit 1cc795995d
27 changed files with 72 additions and 70 deletions

View file

@ -74,7 +74,7 @@ class Event(models.Model):
if user and not user.is_anonymous() \
and (not self.user or \
self.user == user or \
user.get_profile().capability('canEditEvents')):
user.profile.capability('canEditEvents')):
return True
return False