1
0
mirror of https://github.com/django/django.git synced 2024-12-22 09:05:43 +00:00

Refs #32243 -- Fixed typo in docs/topics/files.txt.

This commit is contained in:
Grace Hawkins 2022-02-05 13:49:22 +03:30 committed by GitHub
parent 4b97f698db
commit 25514b604a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ store a photo::
name = models.CharField(max_length=255)
price = models.DecimalField(max_digits=5, decimal_places=2)
photo = models.ImageField(upload_to='cars')
specs = models.FileFile(upload_to='specs')
specs = models.FileField(upload_to='specs')
Any ``Car`` instance will have a ``photo`` attribute that you can use to get at
the details of the attached photo::