Commit 3e388ae6 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch '383-fixtures-partner-logos' into 'master'

Generate logos for partner fixtures

Closes #383

See merge request !480
parents b977b6e0 c014168a
......@@ -120,6 +120,15 @@ class Command(BaseCommand):
partner.is_active = True
partner.is_main_partner = True
igen = IconGenerator(5, 5)
icon = igen.generate(partner.name, 480, 480, (
10, 10, 10, 10
))
with tempfile.TemporaryFile() as tfile:
tfile.write(icon)
partner.logo.save(partner.name + '.png',
File(tfile))
self.create_partner(partner)
for __ in range(options['partner']):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment