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
199c9e2f
Commit
199c9e2f
authored
Apr 19, 2017
by
Milan van Stiphout
Browse files
Strip the tags from the markup in mouseover tooltips
parent
b35e10c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/events/api/serializers.py
View file @
199c9e2f
from
django.urls
import
reverse
from
django.utils
import
timezone
from
django.utils.html
import
strip_tags
from
rest_framework
import
serializers
from
events.models
import
Event
...
...
@@ -45,7 +46,7 @@ class CalenderJSSerializer(serializers.ModelSerializer):
return
instance
.
title
def
_description
(
self
,
instance
):
return
instance
.
description
return
strip_tags
(
instance
.
description
)
def
_background_color
(
self
,
instance
):
pass
...
...
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