title: Django simple_tag and setting context variables
body: <p>Im trying to use a simple_tag and set a context variable. i am using the trunk version of django</p>
  
  <pre><code>from django import template
  
  @register.simple_tag(takes_context=True)
  def somefunction(context, obj):   
      return set_context_vars(obj)
  
  class set_context_vars(template.Node):
      def __init__(self, obj):
          self.object = obj
  
      def render(self, context):
          context['var'] = 'somevar'
          return ''
  </code></pre>
  
  <p>This doesnt set the variable, but if I do something very similar with <code>@register.tag</code> it works but the object parameter doesn't pass through...</p>
  
  <p>Thanks!</p>