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 not in all_fields:
if any(all_rels) and not in all_rels:
if not any(all_rels) or not in all_rels:
if any(all_exclude) and 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