Opened 9 years ago

Last modified 9 years ago

#25040 closed Bug

#get_related_models_recursive cannot digest a Model with a GenericFK — at Version 1

Reported by: Kai Richard König Owned by: nobody
Component: Migrations Version: 1.8
Severity: Normal Keywords: migrations generic fk
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Kai Richard König)

Example models.py:

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!

Change History (1)

comment:1 by Kai Richard König, 9 years ago

Description: modified (diff)
Needs tests: set
Note: See TracTickets for help on using tickets.
Back to Top