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

Tweaked loaddata command to re-use a calculated value. #11637

Merged
merged 1 commit into from
Sep 17, 2020

Conversation

0x55AAh
Copy link
Contributor

@0x55AAh 0x55AAh commented Aug 8, 2019

Dublicated call get_public_serializer_formats on loaddata command

Copy link
Member

@ngnpope ngnpope left a comment

Choose a reason for hiding this comment

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

LGTM.

@carltongibson This is a straightforward simplification.

Copy link
Member

@carltongibson carltongibson left a comment

Choose a reason for hiding this comment

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

OK, yes, thanks. Let's have this.

find_fixtures() relies on parse_name() which already uses serialization_formats, so somebody has to be trying hard for this to be an issue. (Which I will remember when we get the issue report. 😀)

Thanks @0x55AAh, and thanks for the review @pope1ni.

I will rebase now.

Removed a dublicated call to get_public_serializer_formats which
had already populated self.serialization_formats.

Thanks to Nick Pope for review.
@carltongibson carltongibson changed the title Update loaddata.py Tweaked loaddata command to re-use a calculated value. Sep 17, 2020
@carltongibson carltongibson merged commit b376297 into django:master Sep 17, 2020
@carltongibson
Copy link
Member

@0x55AAh Welcome aboard! ⛵️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants