GiPHouse / Website

GiPHouse website based on Django Framework
https://giphouse.nl
GNU Affero General Public License v3.0
5 stars 2 forks source link

User admin filter for course should only consider latest registration #563

Open JobDoesburg opened 2 years ago

JobDoesburg commented 2 years ago

One-sentence description

User admin filter for course should only consider latest registration

How to reproduce the bug

  1. Have a user with 2 registrations, one for engineer and one for manager
  2. Filter for the user's course
  3. The user will appear in both courses

Expected behaviour

Only consider the latest course registration for the filter

JobDoesburg commented 2 years ago

This is because we are actually handling a User model and not a registration model, so the filter's don't work on the registrations directly...