Cmsplugin-blocks

Latest version: v1.6.0

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

1.3.2

--------------------------

* Updated documentation to a new theme;
* Added logo from SVG Repo;
* Restructured and improved documentation;
* Improved Makefile;
* Removed remaining usage of ``os.path`` module in profit of ``pathlib``;
* Removed setting ``BLOCKS_ALLOWED_IMAGE_EXTENSIONS`` in profit of django-smart-media
setting ``SMARTIMAGE_ALLOWED_IMAGE_EXTENSIONS``. You can safely remove the first one
from your settings;
* Moved documentation Django settings into sandbox;
* Fixed warnings about ``django.core.files.storage.get_storage_class()`` for
Django>=5.0;
* Update PO catalogs for new translation strings;
* Internal allowed plugin names in Features have been renamed and a data migration is
in charge to automatically update your data. However this won't work for your
previously exported dumps, you will need to rename these names your in your dumps
with the following changes:

* ``AlbumMain`` becomes ``Album``;
* ``CardMain`` becomes ``Card``;
* ``ContainerMain`` becomes ``Container``;
* ``HeroMain`` becomes ``Hero``;
* ``SliderMain`` becomes ``Slider``;

Also remember than since v1.3.1 the names ``AlbumItem`` and ``SliderItem`` are no
longer valid.

* **Refactored feature getters:**

* The old method ``get_features()`` has been renamed to a property
``flat_features`` with the same behavior (a simple string with ordered
classnames without any duplicate classname): ::

>>> foo = Card(...)
>>> foo.save()
>>> foo.flat_features
"bar foo ping"

* A new property ``scoped_features`` has been introduced, it return a dict indexed
on scopes: ::

>>> foo = Card(...)
>>> foo.save()
>>> foo.scoped_features
{
"size": ["bar", "foo"],
"color": [],
"extra": ["foo", "ping"],
}

* Getters now enforce scope and plugins filtering so you should never have
"orphan feature" (like when you change the scope of a feature to ``extra`` but it
was already used in ``Card.size_features``) returned from getters;

1.3.1

--------------------------

This finalize transition to the new Feature system.

* Implemented new feature system on Album, Container and Slider;
* Album item and Slider item no longer have features;
* Old feature is definitively removed from code and data;

1.3.0

--------------------------

This is an early release for the new Feature system, a new 1.3.x release will come soon
to implement it on every plugin and totally drop the old one.

* Added support for Django 5.0;
* Pinned DjangoCMS to ``<4.0`` since we don't support DjangoCMS 4.X yet;
* Cleaned Tox config from some environment versions to only keep supported bounds (and
speed up Tox suite);
* Moved history changelog from documentation to root repository;
* Added custom templates in sandbox for better demonstration using Bootstrap components;
* Added a new field ``image_alt`` on every plugin model that have a ``image`` field.
This is to improve SEO and accessibility. Note than some shipped default template
like for Hero are not using this new field since they embed image as a background
without a ``<img/>`` tag;
* **Backward incompatible** Added a new way to manage features:

* They are splitted into three scopes: size, color and extra;
* Each scope has its own select input;
* Features management is centralized in a single model with a scope (size, color and
extra) and a list of allowed plugins;
* Allowed plugins for a feature can select it in the proper scope;
* Plugin model method 'get_features' merge all feature scopes in a single string
without duplicate classname;

* New features system has currently been implemented for the following plugins:

* Card;
* Hero;

* The other plugins are still using the old feature system for now;
* Previous features system will be totally removed and there is no way to migrate
their data, you will need to create again your features;

1.2.1

--------------------------

A minor version only to update ``.readthedocs.yml`` file to follow service deprecations
changes.

1.2.0

--------------------------

* ``Card.content`` field is no longer required to be filled and empty value is allowed;

1.1.0

--------------------------

* Upgraded to ``django-smart-media>=0.3.0`` to fix plugin form layout on file inputs,
close 20;
* Cleaned Sass sources from old useless fileinput sources;
* Updated PO and MO files, added missing blank locale for 'en';
* Fixed plugin form to use the proper ``features`` field label;
* Removed all signal receiver ``auto_purge_files_on_change`` usage from all plugins to
remove a misbehavior with file purge and page publication. This means files related
to deleted plugin won't be automatically removed anymore, close 22;

Page 2 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.