From 7b395868e2f3d74a286ac74f926c68823a1b75b7 Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Sun, 26 Mar 2023 14:13:42 +0300 Subject: [PATCH] Remove the `defer` code for non-existent field --- api/catalog/api/models/media.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/api/catalog/api/models/media.py b/api/catalog/api/models/media.py index 61bab5d19d..293b92ef2f 100644 --- a/api/catalog/api/models/media.py +++ b/api/catalog/api/models/media.py @@ -25,24 +25,6 @@ OTHER = "other" -class TagsListDeferralManager(models.Manager): - """ - Custom manager used temporarily to enable zero-downtime removal of the deprecated - `tags_list` field from the media modals. - - @see https://github.com/WordPress/openverse/pull/956. - """ - - def get_queryset(self): - return ( - super() - .get_queryset() - .defer( - "tags_list", - ) - ) - - class AbstractMedia( IdentifierMixin, ForeignIdentifierMixin, MediaMixin, OpenLedgerModel ): @@ -99,8 +81,6 @@ class AbstractMedia( meta_data = models.JSONField(blank=True, null=True) - objects = TagsListDeferralManager() - @property def license_url(self) -> str: """A direct link to the license deed or legal terms."""