djanogo 2
This commit is contained in:
@@ -28,25 +28,25 @@ cycler==0.10.0
|
|||||||
dask==1.1.4
|
dask==1.1.4
|
||||||
decorator==4.4.0
|
decorator==4.4.0
|
||||||
defusedxml==0.5.0
|
defusedxml==0.5.0
|
||||||
Django==1.9.5
|
Django==2.1.7
|
||||||
django-analytical==2.5.0
|
django-analytical==2.5.0
|
||||||
django-async-messages==0.3.1
|
django-async-messages==0.3.1
|
||||||
django-braces==1.13.0
|
django-braces==1.13.0
|
||||||
django-classy-tags==0.8.0
|
django-classy-tags==0.8.0
|
||||||
django-cookie-law==2.0.1
|
django-cookie-law==2.0.1
|
||||||
django-cors-headers==2.4.0
|
django-cors-headers==2.5.2
|
||||||
django-countries==5.3.3
|
django-countries==5.3.3
|
||||||
django-datetime-widget==0.9.3
|
django-datetime-widget==0.9.3
|
||||||
django-debug-toolbar==1.4
|
django-debug-toolbar==1.11
|
||||||
django-extensions==2.1.6
|
django-extensions==2.1.6
|
||||||
django-htmlmin==0.10.0
|
django-htmlmin==0.11.0
|
||||||
django-leaflet==0.24.0
|
django-leaflet==0.24.0
|
||||||
django-mailbox==4.7.1
|
django-mailbox==4.7.1
|
||||||
django-oauth-toolkit==0.10.0
|
django-oauth-toolkit==1.2.0
|
||||||
django-oauth2-provider==0.2.6.1
|
django-oauth2-provider==0.2.6.1
|
||||||
django-rest-framework==0.1.0
|
django-rest-framework==0.1.0
|
||||||
django-rest-swagger==2.2.0
|
django-rest-swagger==2.2.0
|
||||||
django-rq==1.3.0
|
django-rq==1.3.1
|
||||||
django-rq-dashboard==0.3.3
|
django-rq-dashboard==0.3.3
|
||||||
django-ses==0.8.10
|
django-ses==0.8.10
|
||||||
django-shell-plus==1.1.7
|
django-shell-plus==1.1.7
|
||||||
@@ -54,7 +54,7 @@ django-social-share==1.3.2
|
|||||||
django-suit==0.2.26
|
django-suit==0.2.26
|
||||||
django-suit-rq==1.0.1
|
django-suit-rq==1.0.1
|
||||||
django-tz-detect==0.2.9
|
django-tz-detect==0.2.9
|
||||||
djangorestframework==3.5.4
|
djangorestframework==3.9.2
|
||||||
docopt==0.6.2
|
docopt==0.6.2
|
||||||
docutils==0.14
|
docutils==0.14
|
||||||
entrypoints==0.3
|
entrypoints==0.3
|
||||||
@@ -75,7 +75,7 @@ idna==2.8
|
|||||||
image==1.5.27
|
image==1.5.27
|
||||||
importlib-resources==1.0.2
|
importlib-resources==1.0.2
|
||||||
ipykernel==5.1.0
|
ipykernel==5.1.0
|
||||||
ipython==7.3.0
|
ipython==7.4.0
|
||||||
ipython-genutils==0.2.0
|
ipython-genutils==0.2.0
|
||||||
ipywidgets==7.4.2
|
ipywidgets==7.4.2
|
||||||
iso8601==0.1.12
|
iso8601==0.1.12
|
||||||
@@ -89,7 +89,7 @@ jupyter-client==5.2.4
|
|||||||
jupyter-console==6.0.0
|
jupyter-console==6.0.0
|
||||||
jupyter-core==4.4.0
|
jupyter-core==4.4.0
|
||||||
jupyterlab==0.35.4
|
jupyterlab==0.35.4
|
||||||
jupyterlab-server==0.2.0
|
jupyterlab-server==0.3.0
|
||||||
keyring==18.0.0
|
keyring==18.0.0
|
||||||
kiwisolver==1.0.1
|
kiwisolver==1.0.1
|
||||||
kombu==4.3.0
|
kombu==4.3.0
|
||||||
@@ -109,7 +109,7 @@ nose-parameterized==0.6.0
|
|||||||
notebook==5.7.6
|
notebook==5.7.6
|
||||||
numpy==1.16.2
|
numpy==1.16.2
|
||||||
oauth2==1.9.0.post1
|
oauth2==1.9.0.post1
|
||||||
oauthlib==1.0.3
|
oauthlib==3.0.1
|
||||||
openapi-codec==1.3.2
|
openapi-codec==1.3.2
|
||||||
packaging==19.0
|
packaging==19.0
|
||||||
pandas==0.24.2
|
pandas==0.24.2
|
||||||
|
|||||||
@@ -1014,7 +1014,7 @@ class BasePlannedSessionFormSet(BaseFormSet):
|
|||||||
|
|
||||||
# Check if workout is owned by this user
|
# Check if workout is owned by this user
|
||||||
def checkworkoutuser(user,workout):
|
def checkworkoutuser(user,workout):
|
||||||
if user.is_anonymous():
|
if user.is_anonymous:
|
||||||
return False
|
return False
|
||||||
try:
|
try:
|
||||||
r = Rower.objects.get(user=user)
|
r = Rower.objects.get(user=user)
|
||||||
@@ -1034,7 +1034,7 @@ def checkworkoutuser(user,workout):
|
|||||||
|
|
||||||
# Check if workout may be viewed by this user
|
# Check if workout may be viewed by this user
|
||||||
def checkworkoutuserview(user,workout):
|
def checkworkoutuserview(user,workout):
|
||||||
if user.is_anonymous():
|
if user.is_anonymous:
|
||||||
return False
|
return False
|
||||||
try:
|
try:
|
||||||
r = Rower.objects.get(user=user)
|
r = Rower.objects.get(user=user)
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ handler400 = 'views.error400_view'
|
|||||||
handler403 = 'views.error403_view'
|
handler403 = 'views.error403_view'
|
||||||
|
|
||||||
from oauth2_provider.views import base
|
from oauth2_provider.views import base
|
||||||
app_name = "rowers"
|
#app_name = "rowers"
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
re_path(r'^o/authorize/$', base.AuthorizationView.as_view(), name="authorize"),
|
re_path(r'^o/authorize/$', base.AuthorizationView.as_view(), name="authorize"),
|
||||||
|
|||||||
Reference in New Issue
Block a user