Private
Public Access
1
0

djanogo 2

This commit is contained in:
Sander Roosendaal
2019-03-22 12:09:09 +01:00
parent da0842fc8b
commit 588c145b6e
3 changed files with 13 additions and 13 deletions

View File

@@ -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)

View File

@@ -108,7 +108,7 @@ handler400 = 'views.error400_view'
handler403 = 'views.error403_view'
from oauth2_provider.views import base
app_name = "rowers"
#app_name = "rowers"
urlpatterns = [
re_path(r'^o/authorize/$', base.AuthorizationView.as_view(), name="authorize"),