How to return choice of a IntegerField as string?
Typically I store my choices in a class-level constant so they are easier to access and compare against:

``` python

class Something(Model):
    FOO_YES = 1
    FOO_NO = 2
    FOO_CHOICES = (
        (FOO_YES, 'Yes'),
        (FOO_NO, 'No'))
    foo = IntegerField(choices=FOO_CHOICES)

    def __unicode__(self):
        return dict(self.FOO_CHOICES)[self.foo]
```
 Thanks to you. That is a super good tip! I am going to use it immediately!!

I have one table with an IntegerField and in it two choices:

```
class Something(db.Model):
    myattr = IntegerField(choices=((1, 'option one'), (2, 'option two')))
    def __unicode__(self):
        return myattr
```

The **unicode**() method obviously just return the integer 1 or 2. How can I return strings of the choices ('option one' or 'option two')?

Thank you
