title: Passing multiple template variables to template tags in django
body: <p>My problem occurs when I try to pass 3 variables to my template tag which I guess takes one or 2 inputs. So any ideas on how to pass 3 template variables to my template tag and here is my code:</p>
  
  <p>views.py:</p>
  
  <pre><code>from shoghlanah.models import *
  
  register = template.Library()
  
  @register.simple_tag
  def get_messages(sender_id,receiver_id,task_id):
      sender = UserProfile.objects.get(id = sender_id)
      receiver =UserProfile.objects.get(id = receiver_id)
      task = Task.objects.get(id=task_id)
      return messages
  </code></pre>
  
  <p>message.html :</p>
  
  <p>the url.id and the task_id are template variables </p>
  
  <pre><code>{{ get_messages request.user.id usr.id task_id }}
  </code></pre>
  
  <p>it gives me an error : Could not parse the remainder: ' request.user.id usr.id task_id' from 'get_messages request.user.id usr.id task_id'</p>