fix querysets
This commit is contained in:
parent
8486905a66
commit
55c80ce30e
1 changed files with 3 additions and 8 deletions
|
|
@ -112,10 +112,7 @@ class CharacterViewSet(ObjectDBViewSet):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
queryset = DefaultCharacter.objects.typeclass_search(
|
queryset = DefaultCharacter.objects.all_family()
|
||||||
DefaultCharacter.path, include_children=True
|
|
||||||
)
|
|
||||||
list_serializer_class = serializers.ObjectListSerializer
|
|
||||||
|
|
||||||
|
|
||||||
class RoomViewSet(ObjectDBViewSet):
|
class RoomViewSet(ObjectDBViewSet):
|
||||||
|
|
@ -124,8 +121,7 @@ class RoomViewSet(ObjectDBViewSet):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
queryset = DefaultRoom.objects.typeclass_search(DefaultRoom.path, include_children=True)
|
queryset = DefaultRoom.objects.all_family()
|
||||||
list_serializer_class = serializers.ObjectListSerializer
|
|
||||||
|
|
||||||
|
|
||||||
class ExitViewSet(ObjectDBViewSet):
|
class ExitViewSet(ObjectDBViewSet):
|
||||||
|
|
@ -135,8 +131,7 @@ class ExitViewSet(ObjectDBViewSet):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
queryset = DefaultExit.objects.typeclass_search(DefaultExit.path, include_children=True)
|
queryset = DefaultExit.objects.all_family()
|
||||||
list_serializer_class = serializers.ObjectListSerializer
|
|
||||||
|
|
||||||
|
|
||||||
class AccountDBViewSet(TypeclassViewSetMixin, ModelViewSet):
|
class AccountDBViewSet(TypeclassViewSetMixin, ModelViewSet):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue