Fix lỗi newsletter
Mình đã fix lỗi SQL khi đăng ký
This commit is contained in:
parent
51ecaba048
commit
23ee47bb26
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue