コード例 #1
0
 def render(self, name, value, attrs=None):
     value = utils.dump(value) or ''
     return super(MultiEmailWidget, self).render(name, value, attrs)
コード例 #2
0
 def get_db_prep_value(self, value, *args, **kwargs):
     if self.null and value is None and not kwargs.get('force'):
         return None
     return utils.dump(value)
コード例 #3
0
 def value_from_object(self, obj):
     return utils.dump(super(MultiEmailField, self).value_from_object(obj))
コード例 #4
0
 def render(self, name, value, attrs=None):
     value = utils.dump(value) or ''
     return super(MultiEmailWidget, self).render(name, value, attrs)