class SClients(models.Model): swname = models.ForeignKey(s_switch,verbose_name="SWITCH") vlan = models.ForeignKey(s_vlancl,verbose_name="VLAN") class s_switch(models.Model): sw_name = models.CharField(max_length=50,verbose_name="SW_NAME",unique=True) vlan_cl = models.ManyToManyField(s_vlancl,verbose_name='VLAN_CL') How in admin-ke to fill the field based on the selected value, for example: choose swname from the s_switch table, and the vlan field should be selected from the filled s_switch data ( vlan_cl field)