summaryrefslogtreecommitdiff
path: root/django/contrib/flatpages/forms.py
AgeCommit message (Collapse)Author
2023-08-02Removed unneeded escapes in regexes.Mariusz Felisiak
Special characters lose their special meaning inside sets of characters. "-" lose its special meaning if it's placed as the first or last character. Follow up to 7c6b66383da5f9a67142334cd2ed2d769739e8f1.
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-04-28Changed django.forms.ValidationError imports to ↵François Freitag
django.core.exceptions.ValidationError. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-06-28Fixed #30400 -- Improved typography of user facing strings.Jon Dufresne
Thanks Claude Paroz for assistance with translations.
2018-09-11Fixed #29746 -- Fixed misleading FlatpageForm URL help text if APPEND_SLASH ↵Tom Carrick
is disabled.
2017-02-07Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz
Thanks Tim Graham for the review.
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-17Refs #26601 -- Removed support for old-style middleware using ↵Tim Graham
settings.MIDDLEWARE_CLASSES.
2016-05-17Fixed #26601 -- Improved middleware per DEP 0005.Florian Apolloner
Thanks Tim Graham for polishing the patch, updating the tests, and writing documentation. Thanks Carl Meyer for shepherding the DEP.
2016-02-05Fixed #26176 -- Fixed E123 flake8 warnings.Tim Graham
2015-05-13Removed unnecessary arguments in .get method callsPiotr Jakimiak
2014-08-03Fixed #23151 -- Deprecated RegexField.error_message.Tim Graham
Thanks Baptiste Mispelon for the suggestion.
2013-11-28Fixed E125 pep8 warningsChristopher Medrela
2013-11-03Fixed flake8 E251 violationsMilton Mazzarri
2013-10-31Started attackign the next flake8 violationAlex Gaynor
2013-06-18Fixed #20199 -- Allow ModelForm fields to override error_messages from model ↵Loic Bistuer
fields
2013-05-09Fixed #19733 - deprecated ModelForms without 'fields' or 'exclude', and ↵Luke Plant
added '__all__' shortcut This also updates all dependent functionality, including modelform_factory and modelformset_factory, and the generic views `ModelFormMixin`, `CreateView` and `UpdateView` which gain a new `fields` attribute.
2012-11-15Update django/contrib/flatpages/forms.pyvanschelven
Translate before passing in the variables (i.e. close the bracket earlier). If you translate after passing in the variables the translated value will contain the actual values for 'url' and 'site' and will therefore not be translated. (I'm not actually using django's flatpages, but I ran into this apparent error when doing a global grep on my own project)
2012-04-28Fixed #18234: Avoided exception on flatpage addKaren Tracey
2012-01-28Fixed #12972 -- Validated that flatpages URLs start and (when appropriate) ↵Aymeric Augustin
end with a slash. Thanks jabapyth, claudep and kmtracey. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17402 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-22Fixed a broken translation string in the flatpages' forms module.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17249 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-17Fixed #17057 -- Corrected flatpage url uniqueness validation to account for ↵Carl Meyer
flatpage editing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17000 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-07Fixed #14678 -- Added validation to catch flatpages with the same URL on the ↵Carl Meyer
same site. Thanks seler for the report, and joni, graham_king, and j4nu5 for work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16937 bcc190cf-cafb-0310-a4f2-bffc1f526a37