Releases: armstrong/armstrong.core.arm_layout
Releases · armstrong/armstrong.core.arm_layout
v1.4.0
v1.3.0
Supports Django 1.3-1.6 for Python 2.6 and 2.7. (Most of this support existed before but now it is official.) Copied from the new changes.rst
:
- DEPRECATION:
BasicRenderModelBackend
is nowBasicLayoutBackend
The new name better reflects the Armstrong component and its purpose.
The "render_model" name is more of a template tag implementation detail. - DEPRECATION:
ARMSTRONG_RENDER_MODEL_BACKEND
is now
ARMSTRONG_LAYOUT_BACKEND
. The new setting better indicates which
Armstrong component it belongs to. - New
ModelProvidedLayoutBackend
that allows models to specify their own
template lookup by implementingget_layout_template_name()
. - Provide model mixins for use with the new backend that handle common
scenarios such as template lookup using the model's slug, full_slug or type. render_model
template tag now acceptswith
andonly
arguments,
which work exactly as they do in Django's own include template tag.- Refactored three template tags using Django's simple_tag decorator.
- Vast test refactor.