Merge pull request #41 from emladevops/master

Fix lỗi newsletter
This commit is contained in:
Phuoc Dinh Le 2022-12-25 02:06:32 -06:00 committed by GitHub
commit 581c760243
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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):