Ticket #8705: t8705_r8767.diff

File t8705_r8767.diff, 2.0 KB (added by ramiro, 7 years ago)

New version of the patch with unneeded trailing spaces removed

  • docs/topics/db/models.txt

    diff -r cef9b5a51e89 docs/topics/db/models.txt
    a b  
    143143ones:
    144144
    145145    :attr:`~Field.null`
    146 
    147146        If ``True``, Django will store empty values as ``NULL`` in the database.
    148147        Default is ``False``.
    149148
    150149    :attr:`~Field.blank`
     150        If ``True``, the field is allowed to be blank. Default is ``False``.
    151151
    152         If ``True``, the field is allowed to be blank. Default is ``False``.
    153    
    154152        Note that this is different than :attr:`~Field.null`.
    155153        :attr:`~Field.null` is purely database-related, whereas
    156154        :attr:`~Field.blank` is validation-related. If a field has
     
    159157        <Field.blank>`, the field will be required.
    160158
    161159    :attr:`~Field.choices`
    162 
    163160        An iterable (e.g., a list or tuple) of 2-tuples to use as choices for
    164161        this field. If this is given, Django's admin will use a select box
    165162        instead of the standard text field and will limit choices to the choices
     
    174171                ('SR', 'Senior'),
    175172                ('GR', 'Graduate'),
    176173            )
    177            
     174
    178175    :attr:`~Field.default`
    179 
    180176        The default value for the field. This can be a value or a callable
    181177        object. If callable it will be called every time a new object is
    182178        created.
    183    
     179
    184180    :attr:`~Field.help_text`
    185 
    186181        Extra "help" text to be displayed under the field on the object's admin
    187182        form. It's useful for documentation even if your object doesn't have an
    188183        admin form.
    189184
    190185    :attr:`~Field.primary_key`
    191 
    192186        If ``True``, this field is the primary key for the model.
    193187
    194188        If you don't specify :attr:`primary_key=True <Field.primary_key>` for
     
    199193        see :ref:`automatic-primary-key-fields`.
    200194
    201195    :attr:`~Field.unique`
    202 
    203196        If ``True``, this field must be unique throughout the table.
    204197
    205198Again, these are just short descriptions of the most common field options. Full
Back to Top