Fix get_db_prep_value as part of upgrade to Django 1.5