Open zhijiasun opened 10 years ago
Oops, I just run in to this again... is the app not maintained now?
Just ran into the same problem.
The problem is this line:
list_exclusion.append(*cls.Meta.exclude)
which should be
list_exclusion.extend(cls.Meta.exclude)
as i understand the exclude should be a list. but when i define the exclude = ['name1','name2'], error occurs as follows: append() takes exactly one argument (2 given) Exception Location: ...../lib/python2.7/site-packages/adaptor/model.py in get_exclusion_fields, line 312 i think the code should be changed to : if hasattr(cls, "Meta") and hasattr(cls.Meta, "exclude"): list_exclusion.extend(cls.Meta.exclude)