title: Why in django admin foreign key displays attribute value but in angular and database it returns id?
body: <p>In Django admin, foreign key displays attribute value but in angular it returns id. DepartmentID is a foreign key which is displayed as dpt_name in dajngo admin but in database and anguar it is stored as id.
  How to Display Foreign Key Value instead of ID in Angular 9?</p>
  <pre><code>        models.py
  
   Department table
  
      class Department(models.Model):
          DepartmentID = models.CharField(max_length=20, primary_key = True, verbose_name='Department ID')
          dpt_code = models.CharField(max_length=20, verbose_name='code', unique = True, blank = False, null = False)
          dpt_name = models.CharField(max_length=50, verbose_name='name', unique = True, blank = False, null = False)
      
          class Meta:
              db_table = '&quot;tbl_department&quot;'
              verbose_name_plural = &quot;Department&quot;
      
          def __str__(self):
              return self.dpt_name
  
  Program Table
    
  
        class Program(models.Model):
              
              programCode = models.CharField(max_length=3, primary_key = True, verbose_name='Program Code', unique = True)
              pro_name = models.CharField(default = 'B.Sc. Engg. in CSE', max_length=50, verbose_name='name', blank = False, null = False)
              pro_shortForm = models.CharField(default = 'CSE',max_length=20, verbose_name='short Form', blank = False, null = False)
              DepartmentID = models.ForeignKey('Department', on_delete=models.CASCADE, verbose_name='department', db_column=&quot;DepartmentID&quot;)
          
          
              TYPE_CHOICES = (
          ('honours', 'honours'),
          ('masters', 'masters'),
          ('diploma' , 'diploma'),
          ('PhD', 'PhD'),
          )
              
              pro_type = models.CharField(default = 'honours', max_length=7, choices=TYPE_CHOICES, verbose_name='type')
          
              class Meta:
                  db_table = 'tbl_program'
                  verbose_name_plural = &quot;Program&quot;
          
              def __str__(self):
                  return self.pro_name
  </code></pre>