Skip to content
This repository was archived by the owner on May 23, 2020. It is now read-only.

Commit 6ff531d

Browse files
committed
just correcting name of variable
1 parent 137806f commit 6ff531d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

update-1.1/blog/json_format.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"""Outputing post to JSON format, with pk/id from post."""
77
def json_default_posts(request, pk):
88
try:
9-
entry_list = models.Entry.objects.get(pk=pk)
10-
data = entry_list.json_default_post()
9+
entry = models.Entry.objects.get(pk=pk)
10+
data = entry.json_default_post()
1111
except ObjectDoesNotExist:
1212
data = {'error_message':'Object Does NotExist'}
1313

0 commit comments

Comments
 (0)