Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve media method #22

Merged
merged 1 commit into from
Sep 22, 2023
Merged

Conversation

adamchainz
Copy link
Contributor

Avoid mutating the contents of the lists from the instance returned from super(), and instead use addition, the recommended method of combining Media classes.

Avoid mutating the contents of the lists from the instance returned from `super()`, and instead use addition, [the recommended method of combining Media classes](https://docs.djangoproject.com/en/2.2/topics/forms/media/#combining-media-objects).
@blag blag requested a review from andybak December 5, 2019 05:36
Copy link
Collaborator

@blag blag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Awaiting for @andybak to double check.

@andybak
Copy link
Member

andybak commented Dec 5, 2019

Is this backwards compatible?

(quick note - I'm not doing much Django currently and haven't done for a while. Feel free to bypass me for PRs)

@blag
Copy link
Collaborator

blag commented Sep 22, 2023

Sorry, this fell off my radar.

Since the linked docs are for the (now) long-released Django version 2.2, I assume that this has been the preferred way to merge Media objects since then. And since 2.2 has long been out of upstream Django support, I'm not sure that reverse compatibility for pre-2.2 releases is as important as it once was.

@blag blag merged commit f756c05 into DjangoAdminHackers:master Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants