Commits

Jannis Leidel committed 1b2061d

Forgot one decorator for 2.3 compat

  • Participants
  • Parent commits edea1d8

Comments (0)

Files changed (1)

File licenses/templatetags/licensing.py

         Generic node to get one license, the tag defines the search paramter.
     '''
 
-    @classmethod
+    #@classmethod
     def handle_token(cls, parser, token, field):
         tokens = token.split_contents()
         if len(tokens) == 4:
             return cls(query=tokens[1], varname=tokens[3], field=field)
         else:
             raise template.TemplateSyntaxError("%r tag requires 3 arguments" % tokens[0])
+    handle_token = classmethod(handle_token)
 
     def __init__(self, query=None, varname=None, field=None):
         self.varname = varname