Browse files

[1.2.X] Fixed #3094 -- Updated docs to reflect actual behavior of XML…

…Field. Thanks to PaulM for the patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent cb4b469 commit 20cf3b82a1f4f7a2feb8e74152e581e621b37e89 @freakboy3742 freakboy3742 committed Mar 6, 2011
Showing with 3 additions and 5 deletions.
  1. +3 −5 docs/ref/models/fields.txt
@@ -838,15 +838,13 @@ Like all :class:`CharField` subclasses, :class:`URLField` takes the optional
.. class:: XMLField(schema_path=None, [**options])
-A :class:`TextField` that checks that the value is valid XML that matches a
-given schema. Takes one required argument:
+A :class:`TextField` that stores XML data and a path to a schema. Takes one
+optional argument:
.. attribute:: schema_path
- The filesystem path to a RelaxNG_ schema against which to validate the
- field.
+ The filesystem path to a schema for the field.
-.. _RelaxNG:
Relationship fields

0 comments on commit 20cf3b8

Please sign in to comment.