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

Adding checksums to file attributes #233

Merged
merged 1 commit into from
May 23, 2019
Merged

Conversation

daviddavis
Copy link
Contributor

@@ -46,7 +46,7 @@ class FileContentViewSet(ContentViewSet):
"""

endpoint_name = 'files'
queryset = FileContent.objects.all()
queryset = FileContent.objects.prefetch_related("_artifacts").all()
Copy link
Collaborator

@dralley dralley May 23, 2019

Choose a reason for hiding this comment

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

Should it be the other way around?

FileContent.objects.all().prefetch_related("_artifacts")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tested it and couldn't detect a difference. I shortened it to FileContent.objects.prefetch_related("_artifacts") to avoid confusion and to make it simpler. Let me know if you disagree with that.

@daviddavis daviddavis merged commit 5c660ec into pulp:master May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants