-
Notifications
You must be signed in to change notification settings - Fork 195
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
Add searchable and sortable relation columns #573
Add searchable and sortable relation columns #573
Conversation
Signed-off-by: Corinna Wieken <[email protected]>
…r sorting in list view Signed-off-by: Corinna Wieken <[email protected]>
Signed-off-by: Corinna Wieken <[email protected]>
Signed-off-by: Corinna Wieken <[email protected]>
Signed-off-by: Corinna Wieken <[email protected]>
Signed-off-by: Corinna Wieken <[email protected]>
Signed-off-by: Corinna Wieken <[email protected]>
69de538
to
ada2a08
Compare
@aminalaee |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR, but I think it'd be easier to discuss the approach first in the issue/discussion before doing it.
I think it's ideal if we could keep the config in the same one i.e. doing this:
class UserAdmin(...):
column_sortable_list = ["address.street"]
Instead of introducing a new config for this, but not sure how much effort it is so I will take look and let you know.
This is already implemented with a different API. |
I have implemented the feature to define foreign key columns (relation columns) to be used for searching and sorting in list view.
This should also cover discussion #514.