mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
Use a FileField instead of an ImageField in the admin_widgets test so that folks without PIL can still run the tests.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8255 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b30ee21dc1
commit
6185093351
@ -19,7 +19,7 @@ class Band(models.Model):
|
|||||||
class Album(models.Model):
|
class Album(models.Model):
|
||||||
band = models.ForeignKey(Band)
|
band = models.ForeignKey(Band)
|
||||||
name = models.CharField(max_length=100)
|
name = models.CharField(max_length=100)
|
||||||
cover_art = models.ImageField(upload_to='albums')
|
cover_art = models.FileField(upload_to='albums')
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user