|
|
@ -93,7 +93,7 @@ class AssetViewSet(SuggestionMixin, NodeFilterMixin, OrgBulkModelViewSet):
|
|
|
|
model = Asset
|
|
|
|
model = Asset
|
|
|
|
filterset_class = AssetFilterSet
|
|
|
|
filterset_class = AssetFilterSet
|
|
|
|
search_fields = ("name", "address", "comment")
|
|
|
|
search_fields = ("name", "address", "comment")
|
|
|
|
ordering_fields = ('name', 'connectivity', 'platform', 'date_updated', 'date_created')
|
|
|
|
ordering_fields = ('name', 'address', 'connectivity', 'platform', 'date_updated', 'date_created')
|
|
|
|
serializer_classes = (
|
|
|
|
serializer_classes = (
|
|
|
|
("default", serializers.AssetSerializer),
|
|
|
|
("default", serializers.AssetSerializer),
|
|
|
|
("platform", serializers.PlatformSerializer),
|
|
|
|
("platform", serializers.PlatformSerializer),
|
|
|
|