Skip to content

Commit 441cbb3

Browse files
authored
feat: release 0.9.4 (#43)
* Fix: Translations (de) * Cleanup: Remove unsupported stub files for foundation6 and materialio * Add: Version 0.9.4 * Add: frontend_forms deprecation
1 parent 7e99d87 commit 441cbb3

File tree

7 files changed

+40
-172
lines changed

7 files changed

+40
-172
lines changed

CHANGELOG.rst

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

5+
0.9.4
6+
=====
7+
8+
* Refactor forms app into independent project
9+
* Deprecation warning for forms app
10+
* Add dark mode compatibility with django CMS 3.11
11+
* Remove strong dependency on djangocms-icon
12+
* Sync github and pypi releases
13+
514
0.9.1
615
=====
716

README.rst

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ currently used frontend framework such as Bootstrap, or its specific version.
3737

3838
- **Accordion** plugin
3939

40-
- **Forms** plugin for Bootstrap-styled forms on your cms page. Use django-cms'
41-
versatile plugin system to generate your own forms.
42-
4340

4441
*************
4542
Description
@@ -125,7 +122,6 @@ For a manual install:
125122
'djangocms_frontend.contrib.carousel',
126123
'djangocms_frontend.contrib.collapse',
127124
'djangocms_frontend.contrib.content',
128-
'djangocms_frontend.contrib.frontend_forms',
129125
'djangocms_frontend.contrib.grid',
130126
'djangocms_frontend.contrib.image',
131127
'djangocms_frontend.contrib.jumbotron',
@@ -141,18 +137,12 @@ If you use **Django < 3.2** please also add ``django-jsonfield-backport`` to
141137
your ``requirements.txt`` and ``django_jsonfield_backport`` to your
142138
``INSTALLED_APPS`` list.
143139

144-
To use the forms app ``djangocms_frontend.contrib.frontend_forms`` you will have to have
145-
jQuery installed in your project. ``djangocms_frontend`` does not include
146-
jQuery.
147-
148-
**djangocms-frontend** has weak dependencies you can install separately or
149-
by adding an option:
140+
**djangocms-frontend** has a weak dependencies on **djangocms-icon** you can
141+
install separately or by adding an option:
150142

151143
.. code::
152144
153-
pip install djangocms-frontend[reCaptcha] # Installs django-recaptcha enabling reCaptcha for forms
154145
pip install djangocms-frontend[djangocms-icon] # Installs djangocms-icon for icon support in links
155-
pip install djangocms-frontend[reCaptcha, djangocms-icon] # comma-separate multiple dependencies
156146
157147
158148

djangocms_frontend/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.9.1"
1+
__version__ = "0.9.4"

djangocms_frontend/contrib/frontend_forms/apps.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,29 @@ class FormsConfig(AppConfig):
1212

1313
def ready(self):
1414
"""Install the URLs"""
15+
16+
from django.core.checks import Error, Warning, register
17+
18+
@register()
19+
def deprecation_check(app_configs, **kwargs):
20+
if "djangocms_form_builder" in settings.INSTALLED_APPS:
21+
return [
22+
Error(
23+
"djangocms_frontend.contrib.frontend_forms and djangocms_form_builder are installed.",
24+
obj=self,
25+
hint="Remove djangocms_frontend.contrib.frontend_forms",
26+
id="djangocms_frontend.E001",
27+
)
28+
]
29+
return [
30+
Warning(
31+
"djangocms_frontend.contrib.frontend_forms will be removed in version 1.0",
32+
obj=self,
33+
hint="Use djangocms-form-builder instead.",
34+
id="djangocms_frontend.W001",
35+
)
36+
]
37+
1538
try:
1639
reverse("dcf_forms:ajax_form")
1740
except NoReverseMatch: # Not installed yet

docs/source/forms.rst

Lines changed: 0 additions & 135 deletions
This file was deleted.

docs/source/getting_started.rst

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ Add the following entries to your ``INSTALLED_APPS``:
4949
'djangocms_frontend.contrib.carousel',
5050
'djangocms_frontend.contrib.collapse',
5151
'djangocms_frontend.contrib.content',
52-
'djangocms_frontend.contrib.frontend_forms',
5352
'djangocms_frontend.contrib.grid',
5453
'djangocms_frontend.contrib.image',
5554
'djangocms_frontend.contrib.jumbotron',
@@ -65,18 +64,6 @@ Add the following entries to your ``INSTALLED_APPS``:
6564
``requirements.txt`` and add ``"django_jsonfield_backport"`` to your
6665
``INSTALLED_APPS``.
6766
68-
.. note :: jQuery required for forms app to work
69-
70-
You will have to make jQuery available to your project form the forms app
71-
to work with ajax/xhr calls. A simple way of doing this is to include the
72-
following line in your projects base template.
73-
74-
.. code::
75-
76-
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
77-
78-
For all versions see `code.jQuery.com <https://code.jQuery.com>`_
79-
8067
8168
Create necessary database table
8269
===============================

docs/source/index.rst

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ version.
4444
- **Extensible** within the project and with separate project (e.g., a
4545
theme app)
4646

47-
- **Accordion** plugin and simple **forms** plugin w/ Bootstrap-styled
48-
forms on your cms page.
47+
- **Accordion** plugin.
4948

5049
*************
5150
Description
@@ -81,14 +80,10 @@ Components
8180
to grasp and easy to use look. Alerts or cards are examples of
8281
components.
8382

84-
Forms (work in progress)
85-
Finally, djangocms-frontend lets you display forms in a nice way.
86-
Also, it handles form submit actions, validation etc. Forms can be
87-
easily structured using fieldsets known from django's admin app. But
88-
djangocms-frontend also works with third-party apps like
89-
`django-crispy-forms
90-
<https://github.com/django-crispy-forms/django-crispy-forms>`_ for
91-
even more complex layouts.
83+
Forms
84+
To nicely integrate formss into your page we recommend
85+
**djangocms-form-builder** which works stand-alone but also nicely
86+
integrates with **djangocms-frontend**.
9287

9388
Contents
9489
========
@@ -99,7 +94,6 @@ Contents
9994
getting_started
10095
grid
10196
components
102-
forms
10397
howto_guides
10498
reference
10599

0 commit comments

Comments
 (0)