Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #1128 from erikr/improve-smallint-docs

Fixed #20446 -- Documentation for SmallIntegerField does not clarify 'small'
  • Loading branch information...
commit 78de9b19027d3aee268797ad8899ac7283024c0c 2 parents 96cabba + 56e2f6c
Tim Graham authored May 18, 2013

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. 6  docs/ref/models/fields.txt
6  docs/ref/models/fields.txt
@@ -889,7 +889,8 @@ The value ``0`` is accepted for backward compatibility reasons.
889 889
 .. class:: PositiveSmallIntegerField([**options])
890 890
 
891 891
 Like a :class:`PositiveIntegerField`, but only allows values under a certain
892  
-(database-dependent) point.
  892
+(database-dependent) point. Values up to 32767 are safe in all databases
  893
+supported by Django.
893 894
 
894 895
 ``SlugField``
895 896
 -------------
@@ -917,7 +918,8 @@ of some other value.  You can do this automatically in the admin using
917 918
 .. class:: SmallIntegerField([**options])
918 919
 
919 920
 Like an :class:`IntegerField`, but only allows values under a certain
920  
-(database-dependent) point.
  921
+(database-dependent) point. Values from -32768 to 32767 are safe in all databases
  922
+supported by Django.
921 923
 
922 924
 ``TextField``
923 925
 -------------

0 notes on commit 78de9b1

Please sign in to comment.
Something went wrong with that request. Please try again.