title: Add custom js to django form
body: <p>I know how to do this:</p>
  
  <pre><code>class CalendarWidget(forms.TextInput):
      class Media:
          js = ('animations.js', 'actions.js')
  </code></pre>
  
  <p>But then i get something like: "<code>&lt;script type="text/javascript" src="http://media.example.com/animations.js</code>">"</p>
  
  <p>What I want is something like this:</p>
  
  <pre><code>&lt;script&gt;callMYFunction(sdf); &lt;/script&gt;
  </code></pre>
  
  <p>By doing something like this:</p>
  
  <pre><code>class CalendarWidget(forms.TextInput):
      class Media:
          js = (callMYFunction(sdf),)
  </code></pre>
  
  <p>But I can't get this do work.. Any ideas?</p>