mirror of
https://github.com/django/django.git
synced 2025-08-01 09:32:50 +00:00
Modified the test from [4609] to use a FileField instead of an ImageField (so that you don't have to have PIL installed to run the unit tests).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4613 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
9368f67b2b
commit
18ecf9dc85
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ from django.db import models
|
|||
|
||||
class Photo(models.Model):
|
||||
title = models.CharField(maxlength=30)
|
||||
image = models.ImageField(upload_to=tempfile.gettempdir())
|
||||
image = models.FileField(upload_to=tempfile.gettempdir())
|
||||
|
||||
# Support code for the tests; this keeps track of how many times save() gets
|
||||
# called on each instance.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue