incubator
                                
                                
                                
                                    incubator copied to clipboard
                            
                            
                            
                        Bump django-crispy-forms from 1.14.0 to 2.0
Bumps django-crispy-forms from 1.14.0 to 2.0.
Release notes
Sourced from django-crispy-forms's releases.
2.0 (2023-02-13)
Major Changes and Migration Guide
Removed all Bootstrap template packs. These template packs are now available as standalone packages. To upgrade, install the required template pack and add it to your
INSTALLED_APPSsetting.Also, support for Bootstrap 5 is provided by a 3rd party package under the
django-crispy-formsorganisation at crispy-bootstrap5.Removed uni-form template pack. Uni-Form specific classes previously added to every template pack e.g.
textInputare now removed. If you require these classes, the previous behaviour can be restored by adding the following to CRISPY_CLASS_CONVERTERS in your settings file.converters = { "textinput": "textinput textInput", "fileinput": "fileinput fileUpload", "passwordinput": "textinput textInput", }The
uni-formtemplate pack allowed for rendering of templates using adefaultorinlinelayout. As theuni-formtemplate pack has been removed support for this has also been removed. This has resulted in the following BREAKING changes.
- The
 form_styleattribute ofFormHelperis removed.- The
 form_stylepositional argument torender_field()is removed.- The
 form_stylepositional argument to therender()method of allLayoutObjectsis removed.Audit for use of
render()andrender_field()due to the removal of theform_stylepositional argument is therefore required. For example:# django-crispy-forms 1.x html = my_layout_object.render(form, form_style, context) # django-crispy-forms 2.x html = my_layout_object.render(form, context)Widespread use of the
|safein crispy-form templates is removed. Audit for html input in your forms especially for Field and Prepended/Appended text. To retain the previous behaviour mark text as safe in your project code usingmark_safe(). Refs #296.Other Changes
- Dropped support for Django 2.2.
 - Added support for Django 4.1 and 4.2.
 
... (truncated)
Changelog
Sourced from django-crispy-forms's changelog.
2.0 (2023-03-13)
Release of django-crispy-forms 2.0. No changes introduced since 2.0a1.
2.0a1 (2023-01-18)
Major Changes and Migration Guide
Removed all Bootstrap template packs. These template packs are now available as standalone packages. To upgrade, install the required template pack and add it to your
INSTALLED_APPSsetting.Also, support for Bootstrap 5 is provided by a 3rd party package under the
django-crispy-formsorganisation at crispy-bootstrap5.Removed uni-form template pack. Uni-Form specific classes previously added to every template pack e.g.
textInputare now removed. If you require these classes, the previous behaviour can be restored by adding the following to CRISPY_CLASS_CONVERTERS in your settings file.converters = { "textinput": "textinput textInput", "fileinput": "fileinput fileUpload", "passwordinput": "textinput textInput", }The
uni-formtemplate pack allowed for rendering of templates using adefaultorinlinelayout. As theuni-formtemplate pack has been removed support for this has also been removed. This has resulted in the following BREAKING changes.
- The
 form_styleattribute ofFormHelperis removed.- The
 form_stylepositional argument torender_field()is removed.- The
 form_stylepositional argument to therender()method of allLayoutObjectsis removed.Audit for use of
render()andrender_field()due to the removal of theform_stylepositional argument is therefore required. For example:# django-crispy-forms 1.x html = my_layout_object.render(form, form_style, context) # django-crispy-forms 2.x html = my_layout_object.render(form, context)Widespread use of the
|safein crispy-form templates is removed. Audit for html input in your forms especially for Field and Prepended/Appended text. To retain the previous behaviour mark text as safe in your project code usingmark_safe(). Refs #296.
... (truncated)
Commits
a7974992.0 Release (#1335)447177dDrop Django 4.2 Classifier. (#1332)60ca742Pre-commit updates and Black 2023 style. (#1333)e958fef2.0a1 release (#1294)35c857cAdded Django 4.2 support. (#1328)fedf64aMove project setup to pyproject.toml and build package with "build". (#1325)d8f0d34Move pytest options to pyproject.toml (#1324)40d4b48Moved coverage config to pyproject.toml (#1323)fc8a568Improved coverage of black linting. (#1322)b877144Simplified flake8 config and moved to tox.ini (#1321)- Additional commits viewable in compare view
 
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.