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): ...@@ -395,13 +395,13 @@ class GreetingEndSerializer(serializers.BaseSerializer):
Represents the object with German and English text Represents the object with German and English text
""" """
if type(obj) == GreetingText: if isinstance(obj, GreetingText):
id = 1 obj_id = 1
else: else:
id = 2 obj_id = 2
json_obj = { json_obj = {
"id": id, "id": obj_id,
"text_de": obj.text_de, "text_de": obj.text_de,
"text_en": obj.text_en, "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