I want to create one model which has two manytomanyfield. I don't want Django to create two associations tables but the same association table for both manytomanyfield.
This is my model:
class Tab(WModel):
forms = models.ManyToManyField('Form', null=True, blank=True)
fields = models.ManyToManyField('Field', null=True, blank=True)
number = models.IntegerField(null=True, blank=True)
class Meta:
db_table = 'tab'
I just want this association table to be created:
tab_assoc :
id_tab
id_form
id_field
number