I'd do this in an app's `defaults.py`:
from mezzanine.conf import register_setting
register_setting(
name='RICHTEXT_ALLOWED_ATTRIBUTES',
editable=False,
append=True,
default=('placeholder', 'required'),
)
On 10/23/2016 08:19 PM, John Barham wrote:
> I want to *add* the attributes ['placeholder', 'required'] to the
> default RICHTEXT_ALLOWED_ATTRIBUTES list. How do I do that in my
> settings.py?
>
> I'm running Mezzanine 4.2.0 and Django 1.10.2.
>
> Thanks, John
> --
> You received this message because you are subscribed to the Google
> Groups "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.