diff --git a/apis_core/generic/views.py b/apis_core/generic/views.py index f9668854a..c0ca5d3db 100644 --- a/apis_core/generic/views.py +++ b/apis_core/generic/views.py @@ -172,6 +172,7 @@ def _get_columns_choices(self, columns_exclude): choices = [ (field.name, pretty_name(getattr(field, "verbose_name", field.name))) for field in self.model._meta.get_fields() + if field.name not in getattr(self.get_queryset(), "subclasses", []) ] # we add any annotated fields to that choices += [(key, key) for key in self.get_queryset().query.annotations.keys()]