@@ -0,0 +1,594 @@
+from django import forms%0Afrom django.utils.translation import ugettext_lazy as _%0Afrom frontend_notification.constants import NOTICE_TYPE%0A%0A%0Aclass NotificationForm(forms.Form):%0A    %22%22%22%0A    NotificationForm%0A    %22%22%22%0A    notification_list = forms.ChoiceField(required=True, choices=list(NOTICE_TYPE))%0A%0A    def __init__(self, *args, **kwargs):%0A        super(NotificationForm, self).__init__(*args, **kwargs)        %0A        self.fields%5B'notification_list'%5D.widget.attrs%5B'class'%5D = %22form-control%22%0A        self.fields%5B'notification_list'%5D.widget.attrs%5B'onchange'%5D = 'this.form.submit();'               

add forms.py