diff options
author | Stephen Finucane <stephen@that.guru> | 2018-11-16 23:59:20 +0100 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2018-12-22 17:19:06 +0000 |
commit | cdf7936438d147ef6832a3363ace85c272c9ad73 (patch) | |
tree | 85e734b302e8f3626f6cbe6c2f44e548116356a5 | |
parent | 6e48cb627c2731405f991a54085f0148c472d0e6 (diff) | |
download | patchwork-cdf7936438d147ef6832a3363ace85c272c9ad73.tar patchwork-cdf7936438d147ef6832a3363ace85c272c9ad73.tar.gz |
REST: Drop embedded bundle serializer
This wasn't used anywhere and can therefore be removed.
Signed-off-by: Stephen Finucane <stephen@that.guru>
-rw-r--r-- | patchwork/api/embedded.py | 16 |
1 files changed, 0 insertions, 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): |