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)
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user