aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarko Tibold2012-11-16 23:23:34 +0100
committerMarko Tibold2012-11-16 23:23:34 +0100
commit0076e2f462402dbb7bd7b3a446d2c397e6bf8d81 (patch)
tree1424ff74dbfea9ac8ab0215180367151b51a130b
parent1a436dd6d9f56b62de61c55c89084d60c09966ba (diff)
downloaddjango-rest-framework-0076e2f462402dbb7bd7b3a446d2c397e6bf8d81.tar.bz2
Added brief docs for URLField and SlugField.
-rw-r--r--docs/api-guide/fields.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md
index 0485b158..5977cae2 100644
--- a/docs/api-guide/fields.md
+++ b/docs/api-guide/fields.md
@@ -131,6 +131,18 @@ or `django.db.models.fields.TextField`.
**Signature:** `CharField(max_length=None, min_length=None)`
+## URLField
+
+Corresponds to `django.db.models.fields.URLField`. Uses Django's `django.core.validators.URLValidator` for validation.
+
+**Signature:** `CharField(max_length=200, min_length=None)`
+
+## SlugField
+
+Corresponds to `django.db.models.fields.SlugField`.
+
+**Signature:** `CharField(max_length=50, min_length=None)`
+
## ChoiceField
A field that can accept a value out of a limited set of choices.
'n140' href='#n140'>140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196