Skip to content
Snippets Groups Projects
Commit b84c580f authored by borzechof99's avatar borzechof99 :whale2:
Browse files

Adhere to Linter

parent 695b58f0
No related branches found
No related tags found
No related merge requests found
......@@ -395,13 +395,13 @@ class GreetingEndSerializer(serializers.BaseSerializer):
Represents the object with German and English text
"""
if type(obj) == GreetingText:
id = 1
if isinstance(obj, GreetingText):
obj_id = 1
else:
id = 2
obj_id = 2
json_obj = {
"id": id,
"id": obj_id,
"text_de": obj.text_de,
"text_en": obj.text_en,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment