Djblets 5.2 Release Notes¶
Release date: December 17, 2024
Installation¶
To install Djblets 5.2, run:
$ pip3 install Djblets==5.2
To learn more, see:
Packaging¶
Django 4.2.17 (or a higher 4.2.x) is now required.
We previously depended on 4.2.13 or higher.
Modernized the Djblets package to use the modern Python
pyproject.toml
format.This will ensure easy installation going forward.
djblets.configforms¶
Reverted changes to LessCSS variables for configforms that could affect consumers.
In Djblets 5.1, the LessCSS variables defining the colors and layout were updated to reference CSS variables instead. This broke any consumers that made calculations on the LessCSS variables (such as applying
darken()
on a color).We’ve restored the old variables and deprecated them. Call sites should make use of the new CSS variables instead.
djblets.datagrid¶
Fixed the color shown for empty rows on datagrids in dark mode.
djblets.db¶
Added new helper methods to models using
CommaSeparatedValuesField
.The models gain the following methods:
get_fieldname_list()
get_fieldname_display()
Both return a version of the stored list using any display names provided by the
choices=
argument passed to the field.
djblets.extensions¶
Added dark mode support for the extensions UI using Ink.
Fixed using
django.template.RequestContext
with{% template_hook_point %}
.
djblets.forms¶
Added dark mode support for several widgets using Ink.
This includes:
Added customization options for the
Djblets.RelatedObjectSelectorView()
JavaScript class.
Subclasses of this class can now change the following attributes:
autoAddClose
: Whether to automatically add a close action to selected options (defaults totrue
).
optionTagName
: The tag name to use for selected options (defaults to<li>
tags).
djblets.siteconfig¶
Added new options for patching siteconfig settings using the command line.
The
set-siteconfig
management command now supports the following new arguments:--json-patch
: Allows for providing a filename containing a JSON Patch to apply to the settings.--json-merge-patch
: Allows for providing a filename containing a JSON Merge Patch to apply to the settings.
Both options can accept a filename or
-
to read from standard input. These can create new settings, delete settings, or modify existing settings.You will be prompted to confirm the settings before they’re applied. You can pass
--confirm
to skip this, or--dry-run
to simulate applying settings.Note that this feature can be dangerous if used incorrectly. Please test on a backup or staging server if you’re unsure.
Contributors¶
Christian Hammond
David Trowbridge
Michelle Aubin