This commit is contained in:
cuom1999 2022-12-27 12:23:02 -06:00
commit b9fc7bcb06
2 changed files with 2 additions and 9 deletions

View file

@ -125,8 +125,8 @@ class RegistrationView(OldRegistrationView):
profile.organizations.add(*cleaned_data["organizations"])
profile.save()
if newsletter_id is not None and cleaned_data["newsletter"]:
Subscription(user=user, newsletter_id=newsletter_id, subscribed=True).save()
#if newsletter_id is not None and cleaned_data["newsletter"]:
# Subscription(user=user, newsletter_id=newsletter_id, subscribed=True).save()
return user
def get_initial(self, *args, **kwargs):

View file

@ -84,13 +84,6 @@
<div class="form-field-error">{{ form.organizations.errors }}</div>
{% endif %}
{% if form.newsletter %}
<div style="padding-top: 0.5em;">{{ form.newsletter }}
<label for="id_newsletter" style="float: unset;"
class="inline-header grayed">{{ _('Notify me about upcoming contests') }}</label>
</div>
{% endif %}
{% if form.captcha %}
<div style="margin-top: 0.5em">{{ form.captcha }}</div>
{% if form.captcha.errors %}