Tweak the CustomFieldRenderer
base class a bit
Not sure who all's using this now..hopefully this breaks nothing
This commit is contained in:
parent
d40d5e3f6b
commit
f7267597ee
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue