Feincms3

Latest version: v4.6.0

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

Scan your dependencies

Page 4 of 11

0.93

~~~~~~~~~~~~~~~~~~~~

- Changed :func:`feincms3.embedding.embed_youtube` to append ``?rel=0`` to the
YouTube embed URL which should hopefully suppress recommendations when the
embedded video ends.
- **Slightly backwards incompatible**: Dropped the Noembed validation from the
default ``feincms3.plugins.external`` admin inline. Renamed the
(undocumented!) ``ExternalForm`` to ``NoembedValidationForm``.
- Raised the versions of required dependencies to recent versions, especially
django-tree-queries to include a fix for the upcoming Django 4.0.
- Inline CKEditor: Changed the CDN URL to reference CKEditor 4.16.2.
- Inline CKEditor: Changed the JavaScript code to not hard-depend on jQuery.

0.92

~~~~~~~~~~~~~~~~~~~~

- Raised the minimum version of django-content-editor to 5.0a3 to take
advantage of the bundled Material Icons library. Added default icon
specifications to all plugins' inlines.
- Fixed a bug where ``feincms3.plugins.richtext`` wasn't available when
``django-ckeditor`` wasn't installed despite no longer depending on it
anymore.

0.91

~~~~~~~~~~~~~~~~~~~~

Inline CKEditor widget
----------------------

This release deprecates the django-ckeditor integration of feincms3 and
officially introduces a new rich text widget which uses the inline mode of
CKEditor 4. It looks better and avoids the scrollable text area inside the
(scrollable!) content editor.

- Moved the inline CKEditor out of the incubator. It is a good idea and we
should commit to supporting it.
- **BACKWARDS INCOMPATIBLE**: The :mod:`feincms3.plugins.richtext` plugin has
been replaced by a widget using an inline CKEditor instance. The new field
looks better and doesn't depend on django-ckeditor anymore. The
``CKEDITOR_CONFIGS`` setting from django-ckeditor isn't used anymore either,
so if you reconfigured the rich text editor you'll have to update the
configuration again. The old plugin is still available as
:mod:`feincms3.plugins.old_richtext` for the time being.
- **BACKWARDS INCOMPATIBLE**: The :mod:`feincms3.cleanse` module has been
deprecated. The inline CKEditor includes the cleansing functionality too.
- Inline CKEditor: Updated the CKEditor CDN URL to include the 4.16.1 patch
release.
- Removed django-ckeditor from the ``all`` extra of feincms3. This means that
installing ``feincms3[all]`` doesn't automatically install django-ckeditor
anymore.

0.90

~~~~~~~~~~~~~~~~~~~~

This release contains a few backwards-incompatible changes which are the result
of efforts to produce a better foundation and fix oversights towards a 1.0
release of feincms3.

Page types
----------

Introduced the concept of page types. Merged the functionality of
``TemplateMixin`` and ``AppsMixin`` into a new ``PageTypeMixin`` and removed
``AppsMixin``. Editors do not have to choose a template anymore when
activating an app. The latter overrides the former selection anyway. Also, this
allows using a custom selection of regions per application.

The following steps should be followed to upgrade existing sites:

- Create an automatic migration for the pages app.
- Edit the generated migration; create the ``page_type`` field first, and
insert a ``RunSQL`` migration with the following SQL next: ``UPDATE
pages_page SET page_type=CASE WHEN application<>'' THEN application ELSE
template_key END``.
- Ensure that the ``app_instance_namespace`` is renamed to ``app_namespace``
using a ``RenameField`` operation.
- Remove ``template_key`` from any code and replace ``application`` with
``page_type`` in the model admin configuration.
- Convert the entries in your ``TEMPLATES`` list to ``TemplateType`` instances,
convert ``APPLICATIONS`` to ``ApplicationType`` instances and add both to a
new ``TYPES`` class-level list. Note that those applications do not have
*any* regions by default at all.
- The ``.template`` attribute of page classes does not exist any longer, to
access e.g. the ``template_name`` replace ``page.template.template_name``
with ``page.type.template_name``.
- Replace uses of ``page.application`` with ``page.page_type``,
``page.app_instance_namespace`` with ``page.app_namespace``. Properties
mapping the former to the latter will stay in place for a release or two but
they are already deprecated.

Other backwards-incompatible changes
------------------------------------

- Added ``alternative_text`` and ``caption`` fields to the image and the
external plugin. Made both plugins prefer the caption in ``__str__``.
- Dropped the django-versatileimagefield-based image plugin.
- Removed the shims in ``feincms3.apps``.
- Standardized ``max_length`` values of ``CharField`` instances.
- Changed the snippet plugin to no longer try to render templates not in the
``TEMPLATES`` list. This means that you can just remove templates from
``TEMPLATES`` and not worry about database contents referencing templates
which could have been removed in the meantime in the base case.

Minor changes
-------------

- Tried out a web-based translation platform. It wasn't exactly a big
success, but we gained a few translations. Thanks to all contributors!
- Added a system check for page subclasses without the appropriate
ordering definition.
- Changed the docs so that ``AbstractPage`` always comes before mixins
so that ``AbstractPage``'s ``Meta`` properties are actually inherited
by default.
- Changed the docs to recommend ``HttpResponseRedirect`` for the
:class:`feincms3.mixins.RedirectMixin` redirect, not the ``redirect``
shortcut. The latter may crash if the ``redirect_to_url`` doesn't look
like a URL.
- Removed useless fallbacks.
- Fixed background colors in the move form to work with Django admin's dark
mode.
- Added a ``feincms3/static-path-style.js`` script which automatically reduces
the opacity of the path field unless the path is defined manually.
- Introduced an experimental inline CKEditor field.
- Raised the minimum django-content-editor version to 4.1 to take advantage of
``content_editor.models.Type``.

0.41

~~~~~~~~~~~~~~~~~~~~

- Switched from Travis CI to GitHub Actions.
- Dropped the custom CKEditor activation JavaScript,
`django-ckeditor`_ does all we need already.

0.40

~~~~~~~~~~~~~~~~~~~~

- Changed the move form styling (hide the radio inputs and use
background colors, stripes to visualize the tree structure better.
- Added a warning when trying to move a node but there are no valid
targets.
- Fixed the move form widget in the responsive layout.
- Avoided removing the parent node from the move form when moving the
first child.
- Added a ``get_redirect_url`` to the
:class:`~feincms3.mixins.RedirectMixin` which returns the target URL
or ``None``.
- Added the :func:`feincms3.utils.is_first_party_link` utilty.

Page 4 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.