From 23ee47bb266712072654c880e91dd52653ee1098 Mon Sep 17 00:00:00 2001 From: Tran Trong Nghia <80335335+emladevops@users.noreply.github.com> Date: Sun, 25 Dec 2022 13:44:07 +0700 Subject: [PATCH 1/2] =?UTF-8?q?Fix=20l=E1=BB=97i=20newsletter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mình đã fix lỗi SQL khi đăng ký --- judge/views/register.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/judge/views/register.py b/judge/views/register.py index b10b057..b305808 100644 --- a/judge/views/register.py +++ b/judge/views/register.py @@ -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): From 5665bb1f34cafddd93c3c218291a5f64cddef027 Mon Sep 17 00:00:00 2001 From: Tran Trong Nghia <80335335+emladevops@users.noreply.github.com> Date: Sun, 25 Dec 2022 18:03:14 +0700 Subject: [PATCH 2/2] Update registration_form.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mình đã bỏ phần Notify newsletter, vì trong pull request trước, phần newsletter khi đăng kí đã được lược bỏ --- templates/registration/registration_form.html | 7 ------- 1 file changed, 7 deletions(-) diff --git a/templates/registration/registration_form.html b/templates/registration/registration_form.html index b4c5fc1..93854df 100644 --- a/templates/registration/registration_form.html +++ b/templates/registration/registration_form.html @@ -84,13 +84,6 @@