djanogo 2
This commit is contained in:
@@ -1014,7 +1014,7 @@ class BasePlannedSessionFormSet(BaseFormSet):
|
||||
|
||||
# Check if workout is owned by this user
|
||||
def checkworkoutuser(user,workout):
|
||||
if user.is_anonymous():
|
||||
if user.is_anonymous:
|
||||
return False
|
||||
try:
|
||||
r = Rower.objects.get(user=user)
|
||||
@@ -1034,7 +1034,7 @@ def checkworkoutuser(user,workout):
|
||||
|
||||
# Check if workout may be viewed by this user
|
||||
def checkworkoutuserview(user,workout):
|
||||
if user.is_anonymous():
|
||||
if user.is_anonymous:
|
||||
return False
|
||||
try:
|
||||
r = Rower.objects.get(user=user)
|
||||
|
||||
Reference in New Issue
Block a user