dongpoliu / django-template-utils

Automatically exported from code.google.com/p/django-template-utils
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

"self.num", not "num" in templatetags #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the latest svn version, in LatestObjectsNode there is a test:

 if num == 1:

it should be:

 if self.num == 1:

The same error happens in RandomObjectsNode.

Original issue reported on code.google.com by lar...@gmail.com on 17 Apr 2007 at 9:27

GoogleCodeExporter commented 9 years ago
This crept in when I was removing some variable-resolution stuff (where it's 
desirable to assign the result of he 
resolution to a variable which will go out of scope at the end of the method, 
hence "self.num" and "num"); fixed 
the inconsistency in rev75.

Original comment by ubernost...@gmail.com on 17 Apr 2007 at 1:44