From e628d9eb9b7deac2ecffe23eace5c72709887f8f Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 6 Mar 2015 12:05:16 +0000 Subject: Update documentation --- api-guide/fields/index.html | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) (limited to 'api-guide/fields') diff --git a/api-guide/fields/index.html b/api-guide/fields/index.html index 9fd73553..1b7019fe 100644 --- a/api-guide/fields/index.html +++ b/api-guide/fields/index.html @@ -188,6 +188,10 @@ Pagination +
  • + Versioning +
  • +
  • Content negotiation
  • @@ -231,6 +235,10 @@ Documenting your API +
  • + Internationalization +
  • +
  • AJAX, CSRF & CORS
  • @@ -260,23 +268,11 @@
  • - 2.0 Announcement -
  • - -
  • - 2.2 Announcement -
  • - -
  • - 2.3 Announcement -
  • - -
  • - 2.4 Announcement + 3.0 Announcement
  • - 3.0 Announcement + 3.1 Announcement
  • @@ -287,10 +283,6 @@ Release Notes
  • -
  • - Credits -
  • - @@ -661,11 +653,12 @@ color_channel = serializers.ChoiceField(

    CharField

    A text representation. Optionally validates the text to be shorter than max_length and longer than min_length.

    Corresponds to django.db.models.fields.CharField or django.db.models.fields.TextField.

    -

    Signature: CharField(max_length=None, min_length=None, allow_blank=False)

    +

    Signature: CharField(max_length=None, min_length=None, allow_blank=False, trim_whitespace=True)

    The allow_null option is also available for string fields, although its usage is discouraged in favor of allow_blank. It is valid to set both allow_blank=True and allow_null=True, but doing so means that there will be two differing types of empty value permissible for string representations, which can lead to data inconsistencies and subtle application bugs.

    EmailField

    -- cgit v1.2.3