1👍
✅
Add the __unicode()__
method to your Gender
model:
class Gender(models.Model):
gender = models.CharField(
max_length=10,
blank=True,
)
def __unicode__(self):
return self.gender
That way Django will know how to display those Gender
objects.
Source:stackexchange.com