Skip to content

Commit 2e6d45d

Browse files
committed
feat: change second ally image
1 parent 44bc4dd commit 2e6d45d

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

apps/dev/fixtures/sergio.jpg

61.5 KB
Loading

apps/dev/management/commands/dbload.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,16 @@ def add_allies():
7171
email='some.mail@domain.com',
7272
).save()
7373

74+
photo_path = Path(settings.BASE_DIR) / 'apps/dev/fixtures/sergio.jpg'
75+
with photo_path.open('rb') as fin:
76+
photo = UploadedFile(fin, name=photo_path.name)
7477
Ally(
75-
name='Ally 2',
76-
description='El aliado 2 no es malo pero no fue el primero',
78+
name='Sergio',
79+
description='El aliado 2 no es malo, hace lo que puede',
7780
logo=photo,
78-
url='https://www.anotherwebsite.com',
79-
twitter='https://twitter.com/Marvel',
80-
email='marvel@domain.com',
81+
url='https://sdelquin.me/',
82+
twitter='https://twitter.com/sdelquin',
83+
email='sdelquin@gmail.com',
8184
).save()
8285

8386

0 commit comments

Comments
 (0)