Ignore:
Timestamp:
4 Feb 2013, 07:15:04 (12 years ago)
Author:
Henrik Bettermann
Message:

Let's convert the 'sex' field values to lower case. This is one of the most common mistakes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/converters.py

    r8335 r9932  
    118118    def request_data(self, name, value, schema_field, prefix='',
    119119                     mode='create'):
     120        if prefix == 'form.sex' and isinstance(value, basestring):
     121            value = value.lower()
    120122        return {prefix: value}
    121123
Note: See TracChangeset for help on using the changeset viewer.