I am creating a Django application for multiple universities. Here are the Model classes I have used.
class Institute(models.Model):
name=models.CharField(max_length=200)
def __str__(self):
return self.name
class Applicant(models.Model):
name = models.CharField(max_length=200)
institute=models.ForeignKey(Institute,on_delete=models.CASCADE)
def __str__(self):
return self.name
I have created a staff user for each institute but the change list of applicants is also showing the applicants who are not of the same institute. I want to modify admin page change list so that it will list only the applicants which belong to that particular institute. Currently my Applicant page change list look like this for every institute from which I have to remove some applicants.
Current change list