Mercurial > public > sg101
comparison messages/forms.py @ 741:9aae4f99f062
Django 1.6: ModelForms should use either fields or exclude.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 29 Dec 2013 13:20:07 -0600 |
parents | ee87ea74d46b |
children | 95b3d59913ad |
comparison
equal
deleted
inserted
replaced
740:3e1905e523be | 741:9aae4f99f062 |
---|---|
108 | 108 |
109 | 109 |
110 class OptionsForm(forms.ModelForm): | 110 class OptionsForm(forms.ModelForm): |
111 class Meta: | 111 class Meta: |
112 model = Options | 112 model = Options |
113 fields = ['attach_signature', 'notify_email'] | |
113 | 114 |
114 | 115 |
115 def notify_receiver(new_msg): | 116 def notify_receiver(new_msg): |
116 """ | 117 """ |
117 This function creates the notification email to notify a user of | 118 This function creates the notification email to notify a user of |