Skip to content
Advertisement

how to remove a newletter popup when someone sucscribes in django

when someone subscribes to the newsletter i automatically want to remove the popup for the user that just subscribed, i tried create a subscribed = False then change it to subscribed = True when a user subscribes. but it doesnt work. i can easily achieve this is a user is logged i, but in this case even unauthenticated users can also subscribe to the newsletter so that is where the issue comes in.

views.py

JavaScript

templates.html

JavaScript

enter image description here

Advertisement

Answer

Django Close Bootstrap Modal On Submit

this solved my question for me, i had to do was close it when a user submits the form

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement