  
  
  class ForeignKeySource(RESTFrameworkModel):
      name = models.CharField(max_length=100)
      target = models.ForeignKey(ForeignKeyTarget, related_name='sources')
  
  
  # Nullable ForeignKey
  class NullableForeignKeySource(RESTFrameworkModel):
      name = models.CharField(max_length=100)
 
</s> remove                                related_name='nullable_sources')
 </s> add                                related_name='nullable_sources',
                               verbose_name='Optional target object')
    target = models.ForeignKey(ForeignKeyTarget, related_name='sources',
                               verbose_name='Target object')
  
  
  class ForeignKeySource(RESTFrameworkModel):
      name = models.CharField(max_length=100)
    target = models.ForeignKey(ForeignKeyTarget, related_name='sources',
                               verbose_name='Target object')
  
  
  # Nullable ForeignKey
  class NullableForeignKeySource(RESTFrameworkModel):
      name = models.CharField(max_length=100)
keep keep keep keep replace keep keep keep keep keep
 Metadata for related fields -- added test case. 
rest_framework/tests/models.py