title: Django Models Field.E340 : ManytoMany relationship same intermediate table name in 2 different apps
body: <p>We are trying to makemigrations and migrating the app level model to respective databases using database router.</p>
  
  <p>We have one model file in one app pointing to one database and same structured models with table name with some tables added are being created in other app then intermediate table name is creating error.</p>
  
  <p>Error : master.LegalTbl.legal_field_name: (field.E340) The field's intermediary table 'tbl_legal_tbl' clashes with the table name of 'user.LegalTbl'.<img src="https://i.stack.imgur.com/hjhIT.jpg" alt="enter image description here"></p>