revert unintended commit of person/factories.py
- Legacy-Id: 19012
This commit is contained in:
parent
7cbaad721a
commit
48fef02aab
|
@ -96,8 +96,6 @@ class PersonFactory(factory.DjangoModelFactory):
|
|||
obj.photo_thumb = media_name
|
||||
photosrc = os.path.join(settings.TEST_DATA_DIR, "profile-default.jpg")
|
||||
photodst = os.path.join(settings.PHOTOS_DIR, photo_name + '.jpg')
|
||||
debug.show('photosrc')
|
||||
debug.show('photodst')
|
||||
if not os.path.exists(photodst):
|
||||
shutil.copy(photosrc, photodst)
|
||||
def delete_file(file):
|
||||
|
|
Loading…
Reference in a new issue