Skip to content

Commit

Permalink
Remove the defer code for non-existent field
Browse files Browse the repository at this point in the history
  • Loading branch information
obulat committed Apr 27, 2023
1 parent e6db02a commit 7b39586
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions api/catalog/api/models/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
):
Expand Down Expand Up @@ -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."""
Expand Down

0 comments on commit 7b39586

Please sign in to comment.