title: csv import to manytomanyfield Django
body: <p>I used below code to import csv file to django model containing manytomanyfield  Release.metamodules</p>
  
  <pre><code>&gt;&gt;&gt; from app.models import Metamodule,Release
  &gt;&gt;&gt; reldata = csv.reader(open('/root/Django-1.6.5/django/bin/dashboard/release.csv'),delimiter=',')
  
  for row in reldata:
    q = Release(number = row[0],
        notes= row[1],
        changes = row[2],
        metamodules = Metamodule.objects.filter(name = row[3]))
  
    try:
        q.save()
    except:
       # if the're a problem anywhere, you wanna know about it
       print "there was a problem with line"
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Traceback (most recent call last):
   File "&lt;console&gt;", line 5, in &lt;module&gt;
   File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py", line 416, in    __init__
      raise TypeError("'%s' is an invalid keyword argument for this function" %   list(kwargs)[0])
  TypeError: 'metamodules' is an invalid keyword argument for this function
  </code></pre>
  
  <p>As the field is ManyToManyField i used objects.fileter to get multiple records. But it is returning error.Please help me to fix this issue</p>
  
  <p>models.py:</p>
  
  <pre><code>class Metamodule(models.Model):
      name = models.CharField(max_length=50)
      version = models.IntegerField(default=0)
      modulename = models.ForeignKey(Module)
      createdate = models.DateField(auto_now=True, null=True)
      createdby = models.CharField(max_length=50)
  
      def __unicode__(self): 
          return unicode(self.name)
  
  
  class Release(models.Model):
      number = models.IntegerField(default=0)
      notes = models.CharField(max_length=50)
      changes = models.CharField(max_length=50)
      metamodules = models.ManyToManyField(Metamodule)
  
      def __unicode__(self): 
          return unicode(self.number)
  </code></pre>