equal
deleted
inserted
replaced
33 |
33 |
34 def key(entity): |
34 def key(entity): |
35 """Returns the memcache key for the user's sidebar. |
35 """Returns the memcache key for the user's sidebar. |
36 """ |
36 """ |
37 |
37 |
38 return 'homepage_for_%s_%s' % (entity.kind(), entity.key().name()) |
38 return 'homepage_for_%s_%s' % (entity.kind(), entity.key().id_or_name()) |
39 |
39 |
40 |
40 |
41 def get(self, *args, **kwargs): |
41 def get(self, *args, **kwargs): |
42 """Retrieves the sidebar for the specified user from the memcache. |
42 """Retrieves the sidebar for the specified user from the memcache. |
43 """ |
43 """ |