#24758: Options.get_fields() returns reverse fields
----------------------------------------------+----------------------------
     Reporter:  ezarowny                      |      Owner:  nobody
         Type:  Bug                           |     Status:  new
    Component:  Database layer (models, ORM)  |    Version:  1.8
     Severity:  Normal                        |   Keywords:  _meta,
                                              |  documentation
 Triage Stage:  Unreviewed                    |  Has patch:  0
Easy pickings:  0                             |      UI/UX:  0
----------------------------------------------+----------------------------
 According to the docstring for
 [https://github.com/django/django/blob/master/django/db/models/options.py#L756
 Options.get_fields()]:

 {{{
 Returns a list of fields associated to the model. By default will only
 return forward fields.
 }}}

 However, the call to _get_fields does not set reverse=False when its
 default is True. I can't really tell if this was intentional or not. I
 would be happy to make a patch / pull request to fix this either way.

--
Ticket URL: <https://code.djangoproject.com/ticket/24758>
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/051.9cf4413fd99dd6b14840a052795e7ddc%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to