Skip to content

Commit 1410168

Browse files
committed
Fixed some missed instances of a setting name-change.
- Legacy-Id: 11266
1 parent c8ade2d commit 1410168

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

ietf/person/migrations/0011_populate_photos.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ def forward(apps,schema_editor):
2424
for person in Person.objects.all():
2525
dirty = False
2626
if photo_name(person,thumb=False) in image_basenames:
27-
person.photo = os.path.join(settings.PHOTO_URL_PREFIX, image_filenames[image_basenames.index(photo_name(person,thumb=False))])
27+
person.photo = os.path.join(settings.PHOTOS_DIRNAME, image_filenames[image_basenames.index(photo_name(person,thumb=False))])
2828
dirty = True
2929
if photo_name(person,thumb=True) in image_basenames:
30-
person.photo_thumb = os.path.join(settings.PHOTO_URL_PREFIX, image_filenames[image_basenames.index(photo_name(person,thumb=True))])
30+
person.photo_thumb = os.path.join(settings.PHOTOS_DIRNAME, image_filenames[image_basenames.index(photo_name(person,thumb=True))])
3131
dirty = True
3232
if dirty:
3333
person.save()

ietf/person/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class PersonInfo(models.Model):
2828
affiliation = models.CharField(max_length=255, blank=True, help_text="Employer, university, sponsor, etc.")
2929
address = models.TextField(max_length=255, blank=True, help_text="Postal mailing address.")
3030
biography = models.TextField(blank=True, help_text="Short biography for use on leadership pages.")
31-
photo = models.ImageField(storage=NoLocationMigrationFileSystemStorage(location=settings.PHOTOS_DIR),upload_to=settings.PHOTO_URL_PREFIX,blank=True)
32-
photo_thumb = models.ImageField(storage=NoLocationMigrationFileSystemStorage(location=settings.PHOTOS_DIR),upload_to=settings.PHOTO_URL_PREFIX,blank=True)
31+
photo = models.ImageField(storage=NoLocationMigrationFileSystemStorage(location=settings.PHOTOS_DIR),upload_to=settings.PHOTOS_DIRNAME,blank=True)
32+
photo_thumb = models.ImageField(storage=NoLocationMigrationFileSystemStorage(location=settings.PHOTOS_DIR),upload_to=settings.PHOTOS_DIRNAME,blank=True)
3333

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

0 commit comments

Comments
 (0)