Right now TeacherReport takes ages to load. To fix that first we do not load any data. Then if user click submit in filtering form we load filtered observations. Besides that I've made a little refactor and added missing prefetch_related and distinct queries to increase the performence.
Description
Right now TeacherReport takes ages to load. To fix that first we do not load any data. Then if user click submit in filtering form we load filtered observations. Besides that I've made a little refactor and added missing
prefetch_related
anddistinct
queries to increase the performence.ISSUE