Utilities for Mezzanine sites
- Install via pip:
pip install mezzy - Add to
"mezzy"toINSTALLED_APPS(if using the template tags)
Found in mezzy.utils
adminmixins to create "nested" inline admin experiencesformsmixins for more accessible and user-friendly formsmodelsabstract model classes for common inline patternstestsTestCase mixin for class-based and function-based views
mezzy_tags provides the following:
microtemplate: Filter that parses certain variables in the value param. It can be used to allow some templating capabilities in admin fields. Default template tokens can be found inmezzy.defaults.load_theme: Tag that adds theSiteConfigurationto the context. It also uses the request object as cache to avoid some DB hits.clean: Filter that removes HTML tags and attributes that aren't allowed for Mezzanine by default, even if the user has disabled filtering.
Review contribution guidelines at CONTRIBUTING.md.