Preload notes for the whole event
commit3726108264ba7d2a5a0ffaa0d48c127af150c00c
authorAdrian Moennich <adrian.moennich@cern.ch>
Fri, 19 Jun 2015 14:38:20 +0000 (19 16:38 +0200)
committerAdrian Moennich <adrian.moennich@cern.ch>
Wed, 24 Jun 2015 11:53:36 +0000 (24 13:53 +0200)
tree3f7e202bd210721b5fa7559c71bde1ab15d3224c
parente8d71eb9f3195dc5081609309e2eaaeccd49cf78
Preload notes for the whole event

That way we avoid spamming queries when viewing an event with many
notes.
indico/modules/events/notes/models/notes.py
indico/modules/events/notes/models/notes_test.py
indico/testing/mocks.py