Changeset 184
- Timestamp:
- 07/18/05 15:53:02 (3 years ago)
- Files:
-
- django/trunk/docs/model-api.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/model-api.txt
r136 r184 132 132 --------------------- 133 133 134 Each type of field takes a different set of options, but some options are135 common to all field types. These options are:134 Each type of field takes a different set of arguments, but some arguments are 135 common to all field types. These arguments are: 136 136 137 137 ====================== =================================================== 138 OptionDescription138 Argument Description 139 139 ====================== =================================================== 140 140 ``blank`` If ``True``, the field is allowed to be blank. … … 241 241 242 242 ``CommaSeparatedIntegerField`` 243 A field of integers separated by commas. 243 A field of integers separated by commas. As in ``CharField``s, the 244 ``maxlength`` argument is required. 244 245 245 246 ``DateField`` 246 A date field. Has a few extra optional options:247 A date field. Has a few extra optional arguments: 247 248 248 249 ====================== =================================================== 249 OptionDescription250 Argument Description 250 251 ====================== =================================================== 251 252 ``auto_now`` Automatically set the field to now every time the … … 275 276 276 277 ``FloatField`` 277 A floating-point number. Has two additional required options:278 A floating-point number. Has two required arguments: 278 279 279 280 ====================== =================================================== 280 OptionDescription281 Argument Description 281 282 ====================== =================================================== 282 283 ``max_digits`` The maximum number of digits allowed in the number. … … 302 303 meta.ForeignKey(Pizza) 303 304 304 ``ForeignKey`` fields take a large number of extra options for defining how305 the relationship should work :305 ``ForeignKey`` fields take a large number of extra arguments for defining how 306 the relationship should work. All are optional: 306 307 307 308 ======================= ============================================================ 308 OptionDescription309 Argument Description 309 310 ======================= ============================================================ 310 311 ``edit_inline`` If ``True``, this related object is edited … … 448 449 aren't actually a field per se, because they use a intermediary join table. 449 450 Second, they don't take any of the same options as the rest of the fields. 450 The only options taken are:451 The only arguments taken are: 451 452 452 453 ======================= ============================================================ 453 OptionDescription454 Argument Description 454 455 ======================= ============================================================ 455 456 ``related_name`` See the description of ``related_name`` in
