  
  
  class PersonWithDefaultMaxLengths(models.Model):
      email = models.EmailField()
      vcard = models.FileField(upload_to='/tmp')
      homepage = models.URLField()
      avatar = models.FilePathField()
  
  
  class PersonWithCustomMaxLengths(models.Model):
 
</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) </s> remove         photo = models.FileField(upload_to='/home/photos')
 </s> add         photo = models.FileField(upload_to='photos') </s> remove         photo = models.FileField(upload_to='/home/photos')
 </s> add         photo = models.FileField(upload_to='photos')
    vcard = models.FileField()
  
  
  class PersonWithDefaultMaxLengths(models.Model):
      email = models.EmailField()
    vcard = models.FileField()
      homepage = models.URLField()
      avatar = models.FilePathField()
  
  
  class PersonWithCustomMaxLengths(models.Model):
keep keep keep keep replace keep keep keep keep keep
 Refs #27358 -- Removed invalid/unneeded FileField.upload_to in tests/docs. 
tests/max_lengths/models.py