Feincms3-sites

Latest version: v0.21.0

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

Scan your dependencies

Page 1 of 4

0.21

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

- Handle the case when a page's site and its parent's site do not match.
- Added Python 3.12, Django 5.0.
- Dropped support for Django before 4.2.
- Changed the ``DefaultLanguageListFilter`` to use the model admin's default
empty value display, and allowed filtering for sites where a default value
isn't set.
- Raised the minimum feincms3 version to 5.0 and added support for the new move
node interface.

0.20

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

- Made ``Site.languages`` return all languages instead of nonsense when
``language_codes`` is empty.
- Added a system check which ensures that a unique index for ``(site, path)``
exists on pages.
- Fixed the applications clash check.

0.19

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

- Started running tests at least once every month.
- Added an optional language codes field which allows defining the list of
languages per site.
- Added an undocumented ``reverse_site_app`` wrapper around ``reverse_app`` and
``build_absolute_uri`` which allows reversing URLs from the current and other
sites, without caring if a site is active currently.
- Added a default ``get_absolute_url`` method to sites.
- Added an overrideable ``get_host`` method to sites. The method can be
overridden either in a swappable model or by using the
``FEINCMS3_SITES_SITE_GET_HOST`` setting. The setting should be either a
callable or the Python module path to a callable which accepts the site
instance and should return a hostname. It's especially useful for local
development since you can easily change the host values to work in your local
environment. For example, if you're using feincms3-sites with subdomains you
could set ``FEINCMS3_SITES_SITE_GET_HOST = lambda site:
site.host.replace("example.com", "localhost:8000")``.

0.18

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

- Stopped requiring users of the library to set ``FEINCMS3_SITES_SITE_MODEL``
themselves if they are happy with the default site model.
- Changed the model definitions to avoid even more migrations because of
changing choices, hide irrelevant field subclasses.
- Added utilities for only showing objects for some parent object's site in the
admin interface, see ``feincms3_sites.fields``. Everything is ugly and
subject to change.
- Stopped calling ``get_site_model`` for each request, once on startup is
enough.
- Added utilities for building absolute URIs; for example you can now call
``feincms3_sites.middleware.build_absolute_uri(url, site=...)`` in your code
to hopefully add an appropriate protocol and host to a given URL.
- Dropped support for Python 3.8.

0.17

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

- Stopped ``redirect_to_site_middleware`` from using permanent redirects if
``DEBUG`` is ``True``.

0.16

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

- Added basic support for ``i18n_patterns`` to the
``default_language_middleware``.

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.