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