1. Andrew Godwin
  2. south

Commits

Andrew Godwin  committed a8d47e1

Add generics into the ignore code. Special cases are bad.

  • Participants
  • Parent commits b8f2321
  • Branches default

Comments (0)

Files changed (1)

File south/modelsinspector.py

View file
  • Ignore whitespace
 ]
 
 # Regexes of ignored fields (custom fields which look like fields, but have no column behind them)
-ignored_fields = []
+ignored_fields = [
+    "^django\.contrib\.contenttypes\.generic\.GenericRelation",
+    "^django\.contrib\.contenttypes\.generic\.GenericForeignKey",
+]
 
 # Similar, but for Meta, so just the inner level (kwds).
 meta_details = {