#25040: #get_related_models_recursive cannot digest a Model with a GenericFK
-------------------------------------+-------------------------------------
     Reporter:  kairichard           |                    Owner:
                                     |  kairichard
         Type:  Uncategorized        |                   Status:  assigned
    Component:  Migrations           |                  Version:  1.8
     Severity:  Normal               |               Resolution:
     Keywords:  migrations generic   |             Triage Stage:
  fk                                 |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  1                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by knbk):

 `get_related_models_recursive()` is a private API that is only used in a
 context where there shouldn't be any generic foreign keys. I'm a bit
 reluctant to change this, as it can potentially hide other bugs which are
 more difficult to debug.

 Could you give some more context for the exception you're seeing? If
 you're seeing this exception in the migrations framework, and not because
 you're using this function on an actual model class as above, there must
 be some root cause that ''is''  a bug.

 For further reference, it is extremely useful if you include the full
 traceback.

--
Ticket URL: <https://code.djangoproject.com/ticket/25040#comment:3>
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/068.fbdf5516ecc2ee6cbbea5be7daa4e3bb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to