Private
Public Access
1
0

Merge branch 'release/v9.02'

This commit is contained in:
Sander Roosendaal
2019-01-02 10:53:56 +01:00
4 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import braintree import braintree
from django.utils import timezone from django.utils import timezone
import datetime import datetime
import sys
import django_rq import django_rq
queue = django_rq.get_queue('default') queue = django_rq.get_queue('default')
queuelow = django_rq.get_queue('low') queuelow = django_rq.get_queue('low')
@@ -137,7 +137,7 @@ def update_subscription(rower,data,method='up'):
gatewaydata gatewaydata
) )
except: except:
return False return False,0
if result.is_success: if result.is_success:
rower.paidplan = plan rower.paidplan = plan
+4
View File
@@ -1738,6 +1738,8 @@ def handle_sendemailnewresponse(first_name, last_name,
from_email = 'Rowsandall <info@rowsandall.com>' from_email = 'Rowsandall <info@rowsandall.com>'
subject = 'New comment on workout ' + workoutname subject = 'New comment on workout ' + workoutname
comment = u''+comment
siteurl = SITE_URL siteurl = SITE_URL
if debug: if debug:
siteurl = SITE_URL_DEV siteurl = SITE_URL_DEV
@@ -1775,6 +1777,8 @@ def handle_sendemailnewcomment(first_name,
from_email = 'Rowsandall <info@rowsandall.com>' from_email = 'Rowsandall <info@rowsandall.com>'
subject = 'New comment on workout ' + workoutname subject = 'New comment on workout ' + workoutname
comment = u''+comment
siteurl = SITE_URL siteurl = SITE_URL
if debug: if debug:
siteurl = SITE_URL_DEV siteurl = SITE_URL_DEV
+3
View File
@@ -1526,6 +1526,8 @@ def rower_register_view(request):
theuser.email = email theuser.email = email
theuser.save() theuser.save()
birthdate = birthdate.replace(tzinfo=None)
therower = Rower(user=theuser,sex=sex,birthdate=birthdate, therower = Rower(user=theuser,sex=sex,birthdate=birthdate,
weightcategory=weightcategory, weightcategory=weightcategory,
adaptiveclass=adaptiveclass) adaptiveclass=adaptiveclass)
@@ -13812,6 +13814,7 @@ def rower_edit_view(request,rowerid=0,userid=0,message=""):
r.showfavoritechartnotes = showfavoritechartnotes r.showfavoritechartnotes = showfavoritechartnotes
r.sex = sex r.sex = sex
r.birthdate = birthdate r.birthdate = birthdate
if resetbounce and r.emailbounced: if resetbounce and r.emailbounced:
r.emailbounced = False r.emailbounced = False
r.save() r.save()
-1
View File
@@ -33,7 +33,6 @@ handler500 = 'rowers.views.error500_view'
urlpatterns = [ urlpatterns = [
url(r'^admin/jsi18n', 'django.views.i18n.javascript_catalog'),
url('^', include('django.contrib.auth.urls')), url('^', include('django.contrib.auth.urls')),
url(r'^django-rq/',include('django_rq.urls')), url(r'^django-rq/',include('django_rq.urls')),
url(r'^password_change_done/$',auth_views.password_change_done,name='password_change_done'), url(r'^password_change_done/$',auth_views.password_change_done,name='password_change_done'),