[Answered ]-Django search genders

2👍

Django provides a special function for each field with a choices param.

If the field is called gender, you will have a function on your model called get_gender_display() which will return you the string “Male” or “Female”.

Leave a comment