> > In [10]: run1= Run(project=Project.objects.get(pk=1), > sequencing_type=SequencingType.objects.get(pk=1))
> In [11]: run1.save() > In [12]: Run.objects.all() Out[12]: [<Run: run started None from the project test project>] > In [13]: s1=RunHasSample(run=run1, sample=Sample.objects.get(pk=1), > dna_quantification_ng_per_ul=1) > In [14]: s1.save() In [30]: s1.lines.add(Line.objects.get(id=1), Line.objects.get(id=2)) In [31]: s1.save() Yes, I added the lines to the wrong table :) Now it is working in the shell. I'll try to use this<https://docs.djangoproject.com/en/1.4/ref/contrib/admin/#working-with-many-to-many-models> to make this work too in the admin.py interface. I keep you posted, thanks for your help ! -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/mxb4CeH_TAwJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.