Exemplo n.º 1
0
 def __init__(self, *fields, **kwargs):
     self.fields = flatten_list(fields)
     self.filter = kwargs.get('filter')
Exemplo n.º 2
0
 def __init__(self, template, *fields, **kwargs):
     self.fields = flatten_list(fields)
     self.template = template
     self.dictionary = kwargs.pop('dictionary', {})
Exemplo n.º 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)