Beispiel #1
0
 def get_value(self):
     if self.json_value:
         return load_json(self.json_value, None)
     return ''
Beispiel #2
0
 def render(self, name, value, attrs=None):
     try:
         value = load_json(value)
     except:
         pass
     return super(JSONTextInput, self).render(name, value, attrs)