Skip to content

Commit 598b238

Browse files
chore: Bump version to 2.1.1 (#269)
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 0f736a6 commit 598b238

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
Changelog
33
=========
44

5+
2.1.1 (2025-03-29)
6+
==================
7+
8+
* feat: add `instance.get_classes` for template components by @fsbraun
9+
in https://github.com/django-cms/djangocms-frontend/pull/268
10+
* docs: Reference example template components
11+
12+
513
2.1.0 (2025-03-26)
614
==================
715

djangocms_frontend/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
13. Github actions will publish the new package to pypi
2020
"""
2121

22-
__version__ = "2.1.0"
22+
__version__ = "2.1.1"

djangocms_frontend/contrib/link/forms.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ class Meta:
7474

7575
link = LinkFormField(
7676
label=_("Link"),
77-
initial={},
7877
required=False,
7978
)
8079
target = forms.ChoiceField(

docs/source/tutorial/template_components.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,21 @@ Template components are a powerful tool for developers, but they have some limit
262262
to configure the component. Advanced form configurations such as ``fieldsets`` are not available. If you need
263263
to create a custom form for a component, you should create a custom component instead.
264264
* **Limits of the template language**: The Django template language is powerful, but it has some limitations.
265-
Classes are intantiated by default, for example. This is ok for ``widget=forms.Textarea``, but potentially not
265+
Classes are instantiated by default, for example. This is ok for ``widget=forms.Textarea``, but potentially not
266266
for more complex cases.
267267

268+
Examples
269+
========
268270

269-
Trouble Shooting
271+
The djangocms-frontend repository contains a small number of example components in the
272+
`examples directory <https://github.com/django-cms/djangocms-frontend/tree/master/examples>`_.
273+
They are taken from the `Bootstrap 5 examle page <https://getbootstrap.com/docs/5.3/examples/>`_
274+
and modified to include the template component tags.
275+
276+
Examples are not installed through the package. You can copy them to your project and adapt them
277+
to your needs.
278+
279+
Troubleshooting
270280
================
271281

272282
If the component does not appear in the plugin picker, check the following:

0 commit comments

Comments
 (0)