Mercurial > public > sg101
view accounts/fixtures/accounts.json @ 791:0ca691cccf8d
Utilize select_related() for user & user profiles.
This commit also removes the caching of the avatar URL in the
avatar template tag. This is because we are now using select_related,
so we already have the profile & avatar when we get to the tag.
Thus we don't need to waste time querying the cache.
Removed an apparently unused member map template as well.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 23 May 2014 21:52:41 -0500 |
parents | ee87ea74d46b |
children | d8bb9c36aae1 |
line wrap: on
line source
[ { "pk": 1, "model": "accounts.illegalusername", "fields": { "username": "root" } }, { "pk": 2, "model": "accounts.illegalusername", "fields": { "username": "sg101" } }, { "pk": 3, "model": "accounts.illegalusername", "fields": { "username": "surfguitar101" } }, { "pk": 4, "model": "accounts.illegalusername", "fields": { "username": "webmaster" } } ]