diff --git a/suitablephones/serializers.py b/suitablephones/serializers.py index 8007ef7..dbc2112 100644 --- a/suitablephones/serializers.py +++ b/suitablephones/serializers.py @@ -26,4 +26,9 @@ class DeviceSerializer(serializers.ModelSerializer): class Meta: model = Device - exclude = ["id"] \ No newline at end of file + exclude = ["id"] + +class DeviceSerializerShort(DeviceSerializer): + class Meta: + model = Device + include = ["codename", "vendor", "name", "release", "maintainers", "cameras", "battery", "screen"] \ No newline at end of file