diff --git a/rowers/braintreestuff.py b/rowers/braintreestuff.py index c3da9330..3482ec90 100644 --- a/rowers/braintreestuff.py +++ b/rowers/braintreestuff.py @@ -1,7 +1,7 @@ import braintree from django.utils import timezone import datetime - +import sys import django_rq queue = django_rq.get_queue('default') queuelow = django_rq.get_queue('low') @@ -137,7 +137,7 @@ def update_subscription(rower,data,method='up'): gatewaydata ) except: - return False + return False,0 if result.is_success: rower.paidplan = plan diff --git a/rowers/tasks.py b/rowers/tasks.py index ece7a6a6..08191929 100644 --- a/rowers/tasks.py +++ b/rowers/tasks.py @@ -1738,6 +1738,8 @@ def handle_sendemailnewresponse(first_name, last_name, from_email = 'Rowsandall ' subject = 'New comment on workout ' + workoutname + comment = u''+comment + siteurl = SITE_URL if debug: siteurl = SITE_URL_DEV @@ -1775,6 +1777,8 @@ def handle_sendemailnewcomment(first_name, from_email = 'Rowsandall ' subject = 'New comment on workout ' + workoutname + comment = u''+comment + siteurl = SITE_URL if debug: siteurl = SITE_URL_DEV diff --git a/rowers/views.py b/rowers/views.py index 4cd13953..63c691da 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -1526,6 +1526,8 @@ def rower_register_view(request): theuser.email = email theuser.save() + birthdate = birthdate.replace(tzinfo=None) + therower = Rower(user=theuser,sex=sex,birthdate=birthdate, weightcategory=weightcategory, adaptiveclass=adaptiveclass) @@ -13812,6 +13814,7 @@ def rower_edit_view(request,rowerid=0,userid=0,message=""): r.showfavoritechartnotes = showfavoritechartnotes r.sex = sex r.birthdate = birthdate + if resetbounce and r.emailbounced: r.emailbounced = False r.save() diff --git a/rowsandall_app/urls.py b/rowsandall_app/urls.py index d824ae0e..840d8336 100644 --- a/rowsandall_app/urls.py +++ b/rowsandall_app/urls.py @@ -33,7 +33,6 @@ handler500 = 'rowers.views.error500_view' urlpatterns = [ - url(r'^admin/jsi18n', 'django.views.i18n.javascript_catalog'), url('^', include('django.contrib.auth.urls')), url(r'^django-rq/',include('django_rq.urls')), url(r'^password_change_done/$',auth_views.password_change_done,name='password_change_done'),