Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
c014168a
Commit
c014168a
authored
May 10, 2017
by
Tom van Bussel
Browse files
Generate logos for partner fixtures
parent
73ddf51c
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/utils/management/commands/createfixtures.py
View file @
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'
]):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment