mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
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(
|
||||
DefaultCharacter.path, include_children=True
|
||||
)
|
||||
list_serializer_class = serializers.ObjectListSerializer
|
||||
queryset = DefaultCharacter.objects.all_family()
|
||||
|
||||
|
||||
class RoomViewSet(ObjectDBViewSet):
|
||||
|
|
@ -124,8 +121,7 @@ class RoomViewSet(ObjectDBViewSet):
|
|||
|
||||
"""
|
||||
|
||||
queryset = DefaultRoom.objects.typeclass_search(DefaultRoom.path, include_children=True)
|
||||
list_serializer_class = serializers.ObjectListSerializer
|
||||
queryset = DefaultRoom.objects.all_family()
|
||||
|
||||
|
||||
class ExitViewSet(ObjectDBViewSet):
|
||||
|
|
@ -135,8 +131,7 @@ class ExitViewSet(ObjectDBViewSet):
|
|||
|
||||
"""
|
||||
|
||||
queryset = DefaultExit.objects.typeclass_search(DefaultExit.path, include_children=True)
|
||||
list_serializer_class = serializers.ObjectListSerializer
|
||||
queryset = DefaultExit.objects.all_family()
|
||||
|
||||
|
||||
class AccountDBViewSet(TypeclassViewSetMixin, ModelViewSet):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue