app/soc/views/helper/forms.py
changeset 866 6c918ceba37a
parent 753 7d6dead86b59
child 970 8b5611d5b053
equal deleted inserted replaced
865:4f96580e1871 866:6c918ceba37a
   185   Args:
   185   Args:
   186     form: The form from which the cleaned fields should be collected
   186     form: The form from which the cleaned fields should be collected
   187 
   187 
   188   Returns: 
   188   Returns: 
   189     All the fields that are in the form's cleaned_data property are returned. 
   189     All the fields that are in the form's cleaned_data property are returned. 
   190     If there is a key_name field, it is not included in the returend fields, 
   190     If there is a key_name field, it is not included in the returned fields, 
   191     instead, it is returned as the first element in the returned tuple. 
   191     instead, it is returned as the first element in the returned tuple. 
   192     If no key_name field is present, None is returned as first value instead.
   192     If no key_name field is present, None is returned as first value instead.
   193   """
   193   """
   194 
   194 
   195   fields = {}
   195   fields = {}