Esempio n. 1
0
 def __init__(self, formdata=None, obj=None, prefix='', csrf_context=None,
              title=None, **kwargs):
     CSRFForm.__init__(self, formdata, obj, prefix, csrf_context, **kwargs)
     self.team_cleanup.label.text = title
Esempio n. 2
0
 def __init__(self, formdata=None, obj=None, prefix='', csrf_context=None,
              **kwargs):
     if obj is None:
         raise ValueError("Must always provide an existing team")
     CSRFForm.__init__(self, formdata, obj, prefix, csrf_context, **kwargs)