Commit 10c5f952 authored by Malcolm's avatar Malcolm

Convert is_authenticated to property

parent a7f13b93
Pipeline #23216243 passed with stage
in 1 minute and 12 seconds
......@@ -244,7 +244,7 @@ class BookingManager(models.Manager):
def calendar(self, user):
if user.is_staff:
result = self._staff_calendar()
elif user.is_authenticated():
elif user.is_authenticated:
result = self._user_calendar()
else:
result = self._public_calendar()
......@@ -253,7 +253,7 @@ class BookingManager(models.Manager):
def month(self, user, month, year):
if user.is_staff:
result = self._staff_month(month, year)
elif user.is_authenticated():
elif user.is_authenticated:
result = self._user_month(month, year)
else:
result = self._public_month(month, year)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment