'Converts the raw key=val text to a dictionary of key/val pairs'

def clean(self, value):

    super(KeyValueField, self).clean(value)
    try:
        return dict((kvpair.split('=', 2) for kvpair in value.split()))
    except Exception:
        raise ValidationError('Not    in    key=value    format.')
