  
      """
      first_name = models.CharField(max_length=200, help_text="The person's first name")
      last_name = models.CharField(max_length=200, help_text="The person's last name")
      company = models.ForeignKey(Company, help_text="place of work")
      family = models.ForeignKey(Family, related_name='+', null=True)
      groups = models.ManyToManyField(Group, help_text="has membership")
  
      def _get_full_name(self):
          return "%s %s" % (self.first_name, self.last_name)
  
 
</s> remove     store = models.ForeignKey(Store)
 </s> add     store = models.ForeignKey(Store, models.CASCADE) </s> remove     owner = models.ForeignKey(User)
 </s> add     owner = models.ForeignKey(User, models.CASCADE) </s> remove     site = models.ForeignKey(Site, related_name="admin_articles")
 </s> add     site = models.ForeignKey(Site, models.CASCADE, related_name="admin_articles") </s> remove         restaurant = models.ForeignKey(Restaurant)
 </s> add         restaurant = models.ForeignKey(Restaurant, on_delete=models.CASCADE) </s> remove     collection = models.ForeignKey(ProfileCollection, blank=True, null=True)
 </s> add     collection = models.ForeignKey(ProfileCollection, models.SET_NULL, blank=True, null=True)
    company = models.ForeignKey(Company, models.CASCADE, help_text="place of work")
    family = models.ForeignKey(Family, models.SET_NULL, related_name='+', null=True)
  
      """
      first_name = models.CharField(max_length=200, help_text="The person's first name")
      last_name = models.CharField(max_length=200, help_text="The person's last name")
    company = models.ForeignKey(Company, models.CASCADE, help_text="place of work")
    family = models.ForeignKey(Family, models.SET_NULL, related_name='+', null=True)
    company = models.ForeignKey(Company, models.CASCADE, help_text="place of work")
    family = models.ForeignKey(Family, models.SET_NULL, related_name='+', null=True)
      groups = models.ManyToManyField(Group, help_text="has membership")
  
      def _get_full_name(self):
          return "%s %s" % (self.first_name, self.last_name)
  
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/admin_docs/models.py