Using a mapping dictionary looks like a better approach to this. Something like:

```
state = {
    'untranslated': unicode(UNTRANSLATED),
    'fuzzy': unicode(FUZZY),
    'translated': unicode(TRANSLATED),
    'obsolete': unicode(OBSOLETE),
}.get(filters.get(u'state', None), None)
```
And then update the filter's state.