Refactor rolling stock

This commit is contained in:
2022-03-30 23:15:24 +02:00
parent 91e6dd0cac
commit fd76b2df28
25 changed files with 600 additions and 17 deletions

View File

@@ -15,7 +15,7 @@ class RosterGet(RetrieveAPIView):
lookup_field = 'uuid'
class RosterAddress(RetrieveAPIView):
class RosterAddress(ListAPIView):
queryset = RollingStock.objects.all()
serializer_class = RollingStockSerializer
lookup_field = 'address'