def _get_flatchoices(self):
        """Flattened version of choices tuple."""
        flat = []
        for choice, value in self.choices:
            if type(value) in (list, tuple):
                flat.extend(value)
            else:
                flat.append((choice,value))
        return flat
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/db/models/fields/__init__.py/Field._get_flatchoices/original