learning-unlimited/ESP-Website — comment on commit 9adada19e8c2f832f2773efee0d3c798fa1d5bc5
File: esp/esp/program/modules/handlers/onsiteclasslist.py line 101
By aseering:

I *think* you can do this without raw SQL, with Django [F() objects](https://docs.djangoproject.com/en/dev/topics/db/queries/#filters-can-reference-fields-on-the-model). Thoughts?

If raw SQL is necessary, I'm of the opinion that it's OK to use it; but if possible I definitely prefer to use Django-isms, since they're portable across schema changes and DB-engine changes (should we ever clean our few PostgreSQL-specific-isms out of this codebase).