I want when select Realtor its not a dropdownlist but a textbox with a button. If button click will show datatable with realtor data and i can search realtor from that form. if click select button, selected realtor will be a foreignKey for the Listing.
class Listing(models.Model):
realtor = models.ForeignKey(Realtor,on_delete=models.CASCADE)
title = models.CharField(max_length=200)
address = models.CharField(max_length=200)
class Realtor(models.Model):
name= models.CharField(max_length=200)
Suggestions are welcome.