From cdf7936438d147ef6832a3363ace85c272c9ad73 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Fri, 16 Nov 2018 23:59:20 +0100 Subject: REST: Drop embedded bundle serializer This wasn't used anywhere and can therefore be removed. Signed-off-by: Stephen Finucane --- patchwork/api/embedded.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/patchwork/api/embedded.py b/patchwork/api/embedded.py index f088d0a..60fb9a4 100644 --- a/patchwork/api/embedded.py +++ b/patchwork/api/embedded.py @@ -81,22 +81,6 @@ class WebURLMixin(BaseHyperlinkedModelSerializer): return request.build_absolute_uri(instance.get_absolute_url()) -class BundleSerializer(SerializedRelatedField): - - class _Serializer(MboxMixin, WebURLMixin, BaseHyperlinkedModelSerializer): - - class Meta: - model = models.Bundle - fields = ('id', 'url', 'web_url', 'name', 'mbox') - read_only_fields = fields - versioned_fields = { - '1.1': ('web_url', ), - } - extra_kwargs = { - 'url': {'view_name': 'api-bundle-detail'}, - } - - class CheckSerializer(SerializedRelatedField): class _Serializer(BaseHyperlinkedModelSerializer): -- cgit v1.2.3