Removed __len__ from queryset (#247)
This commit is contained in:
parent
efad628a87
commit
0d0befe23e
8 changed files with 82 additions and 70 deletions
|
|
@ -45,7 +45,7 @@ print 'ALL POSTS'
|
|||
print
|
||||
for post in Post.objects:
|
||||
print post.title
|
||||
print '=' * len(post.title)
|
||||
print '=' * post.title.count()
|
||||
|
||||
if isinstance(post, TextPost):
|
||||
print post.content
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue