예제 #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)