Opened 9 years ago
Last modified 9 years ago
#25040 closed Bug
#get_related_models_recursive cannot digest a Model with a GenericFK — at Initial Version
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
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!
Note:
See TracTickets
for help on using tickets.