]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
REST: Drop embedded bundle serializer
authorStephen Finucane <stephen@that.guru>
Fri, 16 Nov 2018 22:59:20 +0000 (23:59 +0100)
committerStephen Finucane <stephen@that.guru>
Sat, 22 Dec 2018 17:19:06 +0000 (17:19 +0000)
This wasn't used anywhere and can therefore be removed.

Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/api/embedded.py

index f088d0aa9db8aebbdbc02acf71f15cbad3e902cd..60fb9a4e970103558c3a4818bfb91ce94aa21fdb 100644 (file)
@@ -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):