def __repr__(self):
        return self.get_choice()

that gives me a bunch of these errors

TypeError: __str__ returned non-string (type Choice)

even though the __repr__ of choice returns a string (CharField).
however:

def __repr__(self):
        return self.get_choice().choice

works a treat. thanks!

Reply via email to