title: Locate the location of bus and student to their parent
body: <p>I am working on a project in which location of bus and student will be shown to the parent. how can I render location of 2 different users to another user ( all are of different model class).
  Model classes are:</p>
  <pre><code>class driver_detail(models.Model):
      d_user = models.OneToOneField(User, on_delete=models.CASCADE)
      driver_name = models.CharField(max_length=50)
      root_no = models.IntegerField()
      d_location = models.CharField(max_length=50,null=True)
      def __str__(self):
          return self.d_user.username
  
  class students(models.Model):
      suser = models.OneToOneField(User, on_delete=models.CASCADE,null=True)
      roll_no = models.CharField(max_length=10,primary_key=True,default=1)
      name = models.CharField(max_length=50)
      root_no = models.ForeignKey(driver_detail, on_delete=models.CASCADE,null=True)
      created = models.DateTimeField(auto_now_add=True)
      locations = models.CharField(max_length=200,null=True)
      def __str__(self):
          return self.suser.username
  
  
  
  class parent(models.Model):
      user = models.OneToOneField(User, on_delete=models.CASCADE)
      name = models.CharField(max_length=50)
      roll_no = models.ForeignKey(students, on_delete=models.CASCADE,null=True)
      created = models.DateTimeField(auto_now_add=True)
      def __str__(self):
          return self.user.username
  </code></pre>