#24665: Model field relational attributes are None by default, not False
-------------------------------------+-------------------------------------
     Reporter:  MarkusH              |                    Owner:  honya121
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  1.8
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by honya121):

 It seems that the relational attributes are `None` only for non-relational
 fields (`Field.is_relation=False`). For relational fields these attributes
 are `False` or `True`. This is right behaviour according to the
 documentation (the values should only be meaningful if
 `Field.is_relation=True`), but it is possible, that I tested it badly. So
 there are 2 options:
 a) keep default relational values in the non-relational fields `None`
 b) set default relational values for ALL fields to `False`

 For both options, it would be good to write what values are default even
 for fields with `Field.is_relation=False`, instead of writing that these
 fields will have unmeaningful values.

--
Ticket URL: <https://code.djangoproject.com/ticket/24665#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.2762309df2dcd6b36ece0c965ebce05f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to