コード例 #1
0
ファイル: layout.py プロジェクト: AndrewBloody/DUBALU_SMS
 def __init__(self, *fields, **kwargs):
     self.fields = flatten_list(fields)
     self.filter = kwargs.get('filter')
コード例 #2
0
ファイル: layout.py プロジェクト: AndrewBloody/DUBALU_SMS
 def __init__(self, template, *fields, **kwargs):
     self.fields = flatten_list(fields)
     self.template = template
     self.dictionary = kwargs.pop('dictionary', {})
コード例 #3
0
ファイル: layout.py プロジェクト: AndrewBloody/DUBALU_SMS
 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)