Tweak the CustomFieldRenderer base class a bit

Not sure who all's using this now..hopefully this breaks nothing
This commit is contained in:
Lance Edgar 2016-12-15 00:36:58 -06:00
parent d40d5e3f6b
commit f7267597ee

View file

@ -43,6 +43,7 @@ class CustomFieldRenderer(fa.FieldRenderer):
def __init__(self, *args, **kwargs):
if len(args) == 1 and isinstance(args[0], AbstractField):
super(CustomFieldRenderer, self).__init__(args[0])
self.init(**kwargs)
else:
assert len(args) == 0
self.init(**kwargs)