I found where the problem is...
It is not a problem in the ManyToManyField but in the intermediate table.
Django refused that my intermediate table doesn't have an unique id !
So, in the sql which created django, it created automatically an unique id
named "id", but in my database I didn't cr
Ok, it is still not working.
Django can't find the intermediate table.
And I can't put an "inlines" into an "inlines" ! My RunHasSample are
already in a field "inlines" in the RunAdmin, so I cannot put the lines in
an "inlines" field into the class RunHasSamplesInLine
--
You received this me
>
> 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]: []
> In [13]: s1=RunHasSample(run=run1, sample=Sample.objects.get(pk=1),
> dna_quantification_ng_per_ul=1)
> In [14]
>
> 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]: []
>
>
>> In [13]: s1=RunHasSample(run=run1, sample=Sample.objects.get(pk=1),
>> dna_quantification_ng_per_ul=
4 matches
Mail list logo