Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Philipp Wolfer
funkwhale
Commits
e12f44d0
Unverified
Commit
e12f44d0
authored
Jun 19, 2020
by
Agate
💬
Browse files
Fix
#1161
: crash with null help text in admin
parent
2999437b
Changes
2
Hide whitespace changes
Inline
Side-by-side
api/funkwhale_api/common/serializers.py
View file @
e12f44d0
...
...
@@ -320,7 +320,9 @@ class AttachmentSerializer(serializers.Serializer):
class
ContentSerializer
(
serializers
.
Serializer
):
text
=
serializers
.
CharField
(
max_length
=
models
.
CONTENT_TEXT_MAX_LENGTH
)
text
=
serializers
.
CharField
(
max_length
=
models
.
CONTENT_TEXT_MAX_LENGTH
,
allow_null
=
True
)
content_type
=
serializers
.
ChoiceField
(
choices
=
models
.
CONTENT_TEXT_SUPPORTED_TYPES
,)
html
=
serializers
.
SerializerMethodField
()
...
...
changes/changelog.d/1161.bugfix
0 → 100644
View file @
e12f44d0
Fixed crash with null help text in admin (#1161)
Write
Preview
Supports
Markdown
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