Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
models: Don't query a related field in __unicode__
Turns out that str(object) is used when putting 'object' in the template context. Because of revisions __unicode__ was using series.name we were doing as many queries as revisions in the detailed series page, without actually using that string representation anywhere. Because the string representation of SeriesRevision is not very useful, let's just get rid of that query altogether. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
- Loading branch information