install aldryn-forms 2.2.8
parent
c1fe63b2b6
commit
9158faded7
@ -0,0 +1,10 @@
|
||||
{
|
||||
"installed-apps": [
|
||||
"emailit",
|
||||
"captcha",
|
||||
"django_tablib",
|
||||
"aldryn_forms",
|
||||
"aldryn_forms.contrib.email_notifications"
|
||||
],
|
||||
"package-name": "aldryn-forms"
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from aldryn_client import forms
|
||||
|
||||
|
||||
class Form(forms.BaseForm):
|
||||
|
||||
show_all_recipients = forms.CheckboxField('Show all users as selectable e-mail recipients (not only admins)', required=False, initial=True)
|
||||
|
||||
def to_settings(self, data, settings):
|
||||
settings['ALDRYN_FORMS_SHOW_ALL_RECIPIENTS'] = data['show_all_recipients']
|
||||
return settings
|
||||
@ -0,0 +1,3 @@
|
||||
{
|
||||
"show_all_recipients": true
|
||||
}
|
||||
Loading…
Reference in New Issue