Skip to content

Commit c0c3d2a

Browse files
committed
Removed an unnecessary storage location argument, and corrected the use of ImageField upload_to in order to point at media/photo instead of media/photo/photo.
- Legacy-Id: 11536
1 parent 11d3e6f commit c0c3d2a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/person/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class PersonInfo(models.Model):
2929
affiliation = models.CharField(max_length=255, blank=True, help_text="Employer, university, sponsor, etc.")
3030
address = models.TextField(max_length=255, blank=True, help_text="Postal mailing address.")
3131
biography = models.TextField(blank=True, help_text="Short biography for use on leadership pages. Use plain text or reStructuredText markup.")
32-
photo = models.ImageField(storage=NoLocationMigrationFileSystemStorage(location=settings.PHOTOS_DIR),upload_to=settings.PHOTOS_DIRNAME,blank=True, default=None)
33-
photo_thumb = models.ImageField(storage=NoLocationMigrationFileSystemStorage(location=settings.PHOTOS_DIR),upload_to=settings.PHOTOS_DIRNAME,blank=True, default=None)
32+
photo = models.ImageField(storage=NoLocationMigrationFileSystemStorage(), upload_to=settings.PHOTOS_DIRNAME, blank=True, default=None)
33+
photo_thumb = models.ImageField(storage=NoLocationMigrationFileSystemStorage(), upload_to=settings.PHOTOS_DIRNAME, blank=True, default=None)
3434

3535
def __unicode__(self):
3636
return self.plain_name()

0 commit comments

Comments
 (0)