      from django.contrib.sites.models import Site
      from django.contrib.sites.managers import CurrentSiteManager
  
      class Photo(models.Model):
          photo = models.FileField(upload_to='/home/photos')
          photographer_name = models.CharField(max_length=100)
          pub_date = models.DateField()
          site = models.ForeignKey(Site, on_delete=models.CASCADE)
          objects = models.Manager()
          on_site = CurrentSiteManager()
 
</s> remove         photo = models.FileField(upload_to='/home/photos')
 </s> add         photo = models.FileField(upload_to='photos') </s> remove     vcard = models.FileField(upload_to='/tmp')
 </s> add     vcard = models.FileField() </s> remove     vcard = models.FileField(upload_to='/tmp', max_length=250)
 </s> add     vcard = models.FileField(max_length=250) </s> remove     data = models.FileField(null=True, upload_to='/foo/bar')
 </s> add     data = models.FileField(null=True) </s> remove #    data = models.FileField(primary_key=True, upload_to='/foo/bar')
 </s> add #    data = models.FileField(primary_key=True)
        photo = models.FileField(upload_to='photos')
      from django.contrib.sites.models import Site
      from django.contrib.sites.managers import CurrentSiteManager
  
      class Photo(models.Model):
        photo = models.FileField(upload_to='photos')
          photographer_name = models.CharField(max_length=100)
          pub_date = models.DateField()
          site = models.ForeignKey(Site, on_delete=models.CASCADE)
          objects = models.Manager()
          on_site = CurrentSiteManager()
keep keep keep keep replace keep keep keep keep keep
 Refs #27358 -- Removed invalid/unneeded FileField.upload_to in tests/docs. 
docs/ref/contrib/sites.txt