Commits

Anonymous committed 7211222

Fixed a bug in form templatetag when the key is given as argument.

Comments (0)

Files changed (1)

ratings/templatetags/ratings_tags.py

                 key = self.key            
             # getting the form
             form_class = handler.get_vote_form_class(request)
-            if self.key is not None:
-                initial['key'] = self.key.resolve(context)
             form = form_class(target_object, key, 
                 **handler.get_vote_form_kwargs(request, target_object, key))
             context[self.varname] = form