Skip to content

Commit

Permalink
Modified the test from [4609] to use a FileField instead of an ImageF…
Browse files Browse the repository at this point in the history
…ield (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
  • Loading branch information
jacobian committed Feb 26, 2007
1 parent 9368f67 commit 18ecf9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/regressiontests/bug639/models.py
Expand Up @@ -3,7 +3,7 @@


class Photo(models.Model): class Photo(models.Model):
title = models.CharField(maxlength=30) 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 # Support code for the tests; this keeps track of how many times save() gets
# called on each instance. # called on each instance.
Expand Down

0 comments on commit 18ecf9d

Please sign in to comment.