mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #14678 -- Added validation to catch flatpages with the same URL on the 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
This commit is contained in:
parent
846fc7260a
commit
3f3010014b
4 changed files with 53 additions and 15 deletions
|
@ -148,6 +148,14 @@ Via the Python API
|
|||
|
||||
.. currentmodule:: django.contrib.flatpages
|
||||
|
||||
.. admonition:: Check for duplicate flatpage URLs.
|
||||
|
||||
If you add or modify flatpages via your own code, you will likely want to
|
||||
check for duplicate flatpage URLs within the same site. The flatpage form
|
||||
used in the admin performs this validation check, and can be imported from
|
||||
:class:`django.contrib.flatpages.forms.FlatPageForm` and used in your own
|
||||
views.
|
||||
|
||||
Flatpage templates
|
||||
==================
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue