Skip to content
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

Student alumni profiles are listed twice #340

Open
thatbudakguy opened this issue Jun 17, 2021 · 1 comment
Open

Student alumni profiles are listed twice #340

thatbudakguy opened this issue Jun 17, 2021 · 1 comment
Labels

Comments

@thatbudakguy
Copy link
Contributor

thatbudakguy commented Jun 17, 2021

Describe the bug
Student alumni who have had multiple roles at the CDH appears to have their profile listed twice in the alumni section — currently Stephanie, Dylan, Kate Carpenter, etc.

Expected behavior
Profiles should only be listed once, and sorted by their most recent role.


dev notes

Now that we're on postgresql, let's try the distinct on user id (postgres supports specifying a field to use for the distinct)

@kmcelwee
Copy link
Contributor

When distinct('pk') filter is added to the PersonListView or StudentListView's get_queryset methods we get the following error:

annotate() + distinct(fields) is not implemented.

Shifting the order of the method chain did not remove the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants