Use account PK instead of the user_id variable

This commit is contained in:
2011-08-31 17:17:07 +01:00
parent c28aefc2a8
commit e3a0e51859
3 changed files with 5 additions and 2 deletions

View File

@@ -57,6 +57,8 @@ class CachedDocumentManager(models.Manager):
url = self.construct_url(url_path, params)
doc_key = sha1(url).hexdigest()
print url
try:
doc = super(CachedDocumentManager, self).get_query_set().get(pk=doc_key)
created = False