From 04f5bd4378acccc73fa6fb01e9e1798ae5815b9d Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Mon, 11 Jun 2007 11:19:43 +0000 Subject: [PATCH] Fixed #4406 -- Documented the maxlength parameter (added in [4295]) for the URLField. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5459 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/model-api.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/model-api.txt b/docs/model-api.txt index a6bb8a5cfc..09440f2b56 100644 --- a/docs/model-api.txt +++ b/docs/model-api.txt @@ -447,6 +447,11 @@ and doesn't give a 404 response). The admin represents this as an ```` (a single-line input). +``URLField`` takes an optional argument, ``maxlength``, the maximum length (in +characters) of the field. The maxlength is enforced at the database level and +in Django's validation. If you don't specify ``maxlength``, a default of 200 +is used. + ``USStateField`` ~~~~~~~~~~~~~~~~