Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
thalia
concrexit
Commits
c058990b
Commit
c058990b
authored
Sep 25, 2016
by
Sébastiaan Versteeg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix color and title of partner event
parent
6e9625b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
website/partners/api/serializers.py
website/partners/api/serializers.py
+4
-1
No files found.
website/partners/api/serializers.py
View file @
c058990b
...
...
@@ -10,11 +10,14 @@ class PartnerEventSerializer(CalenderJSSerializer):
class
Meta
(
CalenderJSSerializer
.
Meta
):
model
=
PartnerEvent
def
_title
(
self
,
instance
):
return
"{} ({})"
.
format
(
instance
.
title
,
instance
.
partner
.
name
)
def
_background_color
(
self
,
instance
):
return
'#E62272'
def
_text_color
(
self
,
instance
):
return
'
#FFFFF
'
return
'
white
'
def
_url
(
self
,
instance
):
return
instance
.
url
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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