Skip to content

Commit

Permalink
feat: release 0.9.4 (#43)
Browse files Browse the repository at this point in the history
* Fix:		Translations (de)
* Cleanup:	Remove unsupported stub files for foundation6 and materialio
* Add:		Version 0.9.4
* Add: 		frontend_forms deprecation
  • Loading branch information
fsbraun authored Jun 24, 2022
1 parent 7e99d87 commit 441cbb3
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 172 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
Changelog
=========

0.9.4
=====

* Refactor forms app into independent project
* Deprecation warning for forms app
* Add dark mode compatibility with django CMS 3.11
* Remove strong dependency on djangocms-icon
* Sync github and pypi releases

0.9.1
=====

Expand Down
14 changes: 2 additions & 12 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ currently used frontend framework such as Bootstrap, or its specific version.

- **Accordion** plugin

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


*************
Description
Expand Down Expand Up @@ -125,7 +122,6 @@ For a manual install:
'djangocms_frontend.contrib.carousel',
'djangocms_frontend.contrib.collapse',
'djangocms_frontend.contrib.content',
'djangocms_frontend.contrib.frontend_forms',
'djangocms_frontend.contrib.grid',
'djangocms_frontend.contrib.image',
'djangocms_frontend.contrib.jumbotron',
Expand All @@ -141,18 +137,12 @@ If you use **Django < 3.2** please also add ``django-jsonfield-backport`` to
your ``requirements.txt`` and ``django_jsonfield_backport`` to your
``INSTALLED_APPS`` list.

To use the forms app ``djangocms_frontend.contrib.frontend_forms`` you will have to have
jQuery installed in your project. ``djangocms_frontend`` does not include
jQuery.

**djangocms-frontend** has weak dependencies you can install separately or
by adding an option:
**djangocms-frontend** has a weak dependencies on **djangocms-icon** you can
install separately or by adding an option:

.. code::
pip install djangocms-frontend[reCaptcha] # Installs django-recaptcha enabling reCaptcha for forms
pip install djangocms-frontend[djangocms-icon] # Installs djangocms-icon for icon support in links
pip install djangocms-frontend[reCaptcha, djangocms-icon] # comma-separate multiple dependencies
Expand Down
2 changes: 1 addition & 1 deletion djangocms_frontend/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.9.1"
__version__ = "0.9.4"
23 changes: 23 additions & 0 deletions djangocms_frontend/contrib/frontend_forms/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,29 @@ class FormsConfig(AppConfig):

def ready(self):
"""Install the URLs"""

from django.core.checks import Error, Warning, register

@register()
def deprecation_check(app_configs, **kwargs):
if "djangocms_form_builder" in settings.INSTALLED_APPS:
return [
Error(
"djangocms_frontend.contrib.frontend_forms and djangocms_form_builder are installed.",
obj=self,
hint="Remove djangocms_frontend.contrib.frontend_forms",
id="djangocms_frontend.E001",
)
]
return [
Warning(
"djangocms_frontend.contrib.frontend_forms will be removed in version 1.0",
obj=self,
hint="Use djangocms-form-builder instead.",
id="djangocms_frontend.W001",
)
]

try:
reverse("dcf_forms:ajax_form")
except NoReverseMatch: # Not installed yet
Expand Down
135 changes: 0 additions & 135 deletions docs/source/forms.rst

This file was deleted.

13 changes: 0 additions & 13 deletions docs/source/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ Add the following entries to your ``INSTALLED_APPS``:
'djangocms_frontend.contrib.carousel',
'djangocms_frontend.contrib.collapse',
'djangocms_frontend.contrib.content',
'djangocms_frontend.contrib.frontend_forms',
'djangocms_frontend.contrib.grid',
'djangocms_frontend.contrib.image',
'djangocms_frontend.contrib.jumbotron',
Expand All @@ -65,18 +64,6 @@ Add the following entries to your ``INSTALLED_APPS``:
``requirements.txt`` and add ``"django_jsonfield_backport"`` to your
``INSTALLED_APPS``.
.. note :: jQuery required for forms app to work
You will have to make jQuery available to your project form the forms app
to work with ajax/xhr calls. A simple way of doing this is to include the
following line in your projects base template.
.. code::
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
For all versions see `code.jQuery.com <https://code.jQuery.com>`_
Create necessary database table
===============================
Expand Down
16 changes: 5 additions & 11 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ version.
- **Extensible** within the project and with separate project (e.g., a
theme app)

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

*************
Description
Expand Down Expand Up @@ -81,14 +80,10 @@ Components
to grasp and easy to use look. Alerts or cards are examples of
components.

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

Contents
========
Expand All @@ -99,7 +94,6 @@ Contents
getting_started
grid
components
forms
howto_guides
reference

Expand Down

0 comments on commit 441cbb3

Please sign in to comment.