From 0a7bab32e6b24f93b7d03dac1192e23f39cc3a24 Mon Sep 17 00:00:00 2001 From: August Johnson Date: Mon, 22 Apr 2024 06:33:41 -0500 Subject: [PATCH] Missing a lookup for character class. --- api_v2/serializers/search.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api_v2/serializers/search.py b/api_v2/serializers/search.py index 1daed98c..08fba1e7 100644 --- a/api_v2/serializers/search.py +++ b/api_v2/serializers/search.py @@ -72,7 +72,7 @@ def get_route(self, obj): "Item":"items", "Creature":"creatures", "Spell":"spells", - "CharacterClass":"class", + "CharacterClass":"classes", "Monster":"monsters", "MagicItem":"magicitems", "Section":"sections", @@ -81,7 +81,9 @@ def get_route(self, obj): "Feat":"feats", "Race":"races", "Plane":"planes", + "CharClass":"classes" } + route = "{}/{}/".format(obj.schema_version,route_lookup[obj.object_model]) return route \ No newline at end of file