示例#1
0
 def __init__(self, *fields, **kwargs):
     self.fields = flatten_list(fields)
     self.filter = kwargs.get('filter')
示例#2
0
 def __init__(self, template, *fields, **kwargs):
     self.fields = flatten_list(fields)
     self.template = template
     self.dictionary = kwargs.pop('dictionary', {})
示例#3
0
 def __init__(self, *fields, **kwargs):
     self.fields = flatten_list(fields)
     self.initial = kwargs.pop('data', None) is None
     self.attrs = kwargs
     self.flat_attrs = flatatt(self.attrs)