#25040: #get_related_models_recursive cannot digest a Model with a GenericFK
-------------------------------+-----------------------------------
     Reporter:  kairichard     |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Migrations     |    Version:  1.8
     Severity:  Normal         |   Keywords:  migrations generic fk
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+-----------------------------------
 Example:
 {{{
 from django.db import models
 from django.contrib.contenttypes import generic
 from django.db.migrations.state import get_related_models_recursive

 class BaseModel(models.Model):
     current_state = generic.GenericForeignKey()

 get_related_models_recursive(BaseModel) # Exception!
 }}}

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

Reply via email to