def choices(self, changelist):
    (yield {'selected': self._is_all_selected(), 'query_string': self._get_all_query_string(changelist), 'display': _('All'), 'initial': True})
    for (lookup, title) in self.lookup_choices:
        lookup_value = str(lookup)
        (yield {'selected': ((str(lookup) in self.value_as_list()) or self._is_default(lookup_value)), 'query_string': changelist.get_query_string({self.parameter_name: lookup}), 'include_query_string': self._update_query(changelist, include=str(lookup_value)), 'exclude_query_string': self._update_query(changelist, exclude=str(lookup_value)), 'display': title})
def choices(self, changelist):
    (yield {'selected': self._is_all_selected(), 'query_string': self._get_all_query_string(changelist), 'display': _('All'), 'initial': True})
    for (lookup, title) in self.lookup_choices:
        lookup_value = str(lookup)
        (yield {'selected': ((str(lookup) in self.value_as_list()) or self._is_default(lookup_value)), 'query_string': changelist.get_query_string({self.parameter_name: lookup}), 'include_query_string': self._update_query(changelist, include=str(lookup_value)), 'exclude_query_string': self._update_query(changelist, exclude=str(lookup_value)), 'display': title})