• Tom van Bussel's avatar
    Optimize the activemembers admin · 9064d997
    Tom van Bussel authored
    This commit makes the activemembers admin a lot faster by doing the
    following two things:
    
    1. Add `member` to `raw_id_fields` in the inline for committee
       memberships. Before the entire list of members was copied for every
       committee membership. This resulted in html pages of several
       megabytes.
    2. Remove duplicate queries (for different ids) by adding
       `select_related` calls in the right places.
    9064d997
admin.py 3.25 KB