Commit e4701454 authored by Mark Steadman's avatar Mark Steadman

Fixes an issue whereby some fields were incorrectly included in factory-created model forms

parent 5a0b689b
......@@ -416,7 +416,7 @@ class ModelMixin(object):
for f in opts.get_fields():
if any(all_fields) and f.name not in all_fields:
if any(all_rels) and f.name not in all_rels:
if not any(all_rels) or f.name not in all_rels:
continue
if any(all_exclude) and f.name in all_exclude:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment