Skip to content
Browse files

Fixed a problem in show

  • Loading branch information...
1 parent 20b6a66 commit 9ae6d0e1aedb0fb0e4391fa086cd10e6ca2e95f0 @pelle committed Jun 12, 2008
Showing with 4 additions and 4 deletions.
  1. +1 −1 controllers/posts.py
  2. +3 −3 index.yaml
View
2 controllers/posts.py
@@ -107,7 +107,7 @@ def show(request,key):
if post is None:
return http.HttpResponseNotFound("No Post exists with that key")
return views.respond(request, user, 'posts/show',
- {'post': post})
+ {'post': post.to_hash()})
except(db.BadKeyError):
return http.HttpResponseNotFound("No Post exists with that key")
View
6 index.yaml
@@ -10,14 +10,14 @@ indexes:
# automatically uploaded to the admin console when you next deploy
# your application using appcfg.py.
-# Unused in query history -- copied from input.
+# Used once in query history.
- kind: Post
properties:
- name: author
- name: created
direction: desc
-# Used 75 times in query history.
+# Used 77 times in query history.
- kind: Post
properties:
- name: created
@@ -29,7 +29,7 @@ indexes:
- name: created
direction: desc
-# Unused in query history -- copied from input.
+# Used once in query history.
- kind: Profile
properties:
- name: postCount

0 comments on commit 9ae6d0e

Please sign in to comment.
Something went wrong with that request. Please try again.