#21828: Can no longer use model meta methods in other methods after app loading
changes
-------------------------------------+-------------------------------------
     Reporter:  timo                 |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |             Triage Stage:
     Keywords:  app-loading          |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by akaariai):

 The get_all_field_names() method isn't safe to call when all apps aren't
 loaded. For example all reverse m2m fields should be in
 get_all_field_names(), but all reverse m2m fields aren't guaranteed to be
 available until all models are loaded (any model not yet loaded could have
 a m2m field pointing to current model).

 Based on the report it is hard to decide how to proceed. Which use cases
 are broken? Are there other ways to achieve those use cases?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21828#comment:1>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.7e1f75d905481e14c1c22da82c7f46ef%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to