summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2011-10-07 15:45:52 +0000
committerCarl Meyer <carl@oddbird.net>2011-10-07 15:45:52 +0000
commit3f3010014b33451553c62b005c2ec09a16a9f9ce (patch)
tree1e6da54458f57ac21e2c90ecfa2348b59846c63a /docs
parent846fc7260a95cbb7235ed6f69a2cecee489d1048 (diff)
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
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/flatpages.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/ref/contrib/flatpages.txt b/docs/ref/contrib/flatpages.txt
index db063f91ad..4a1f2970cb 100644
--- a/docs/ref/contrib/flatpages.txt
+++ b/docs/ref/contrib/flatpages.txt
@@ -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
==================