-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[relations] Additional columns dropdown lists all relations classes #1297
Comments
We dont. This is a bug. |
https://github.com/acdh-oeaw/apis-core-rdf/blob/main/apis_core/generic/views.py#L135C50-L138 |
or the child classes get in via the class inheritance FKs https://github.com/acdh-oeaw/apis-core-rdf/blob/main/apis_core/generic/views.py#L126-L129 |
We don't want to list subclasses as model attribute in the column selector in the list view, but they are part of the fields list. If the model uses the InheritanceManager we can check in the `subclasses` attribute if the field refers to a subclass and exclude those. Closes: #1297
Why do we need to be able to select the relationship classes as a columns?
If there is a valid usecase, can we consider showing the same text in the columns dropdown item as the column header for consistency? It is confusing to see all of these appear under the same column heading - "ID"
The text was updated successfully, but these errors were encountered: