ThreeSixtyGiving / datastore

A Data Store application for 360Giving
GNU Affero General Public License v3.0
0 stars 1 forks source link

api: Fix OrgDetailView Performance #204

Closed R2ZER0 closed 5 months ago

R2ZER0 commented 5 months ago

Turns out calling "not" on a QuerySet fully evaluates it, making the query. This was causing the OrgDetailView to query all Entities in the db on every call. This PR explicitly checks for None instead instead of using not.