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

Eliminate additional Milestone query and remove can_edit_milestones #2477

Merged
merged 1 commit into from Oct 16, 2018

Conversation

mbeacom
Copy link
Contributor

@mbeacom mbeacom commented Oct 16, 2018

Description

The goal of this PR is to eliminate the Milestone.objects.get(...) query from the grant_details view by prefetch_related('milestones') and eliminate can_edit_milestones for is_admin.

Checklist
  • linter status: 100% pass
  • changes don't break existing behavior
  • commit message follows commit guidelines
Affected core subsystem(s)

grants, milestones

Testing

Locally

@mbeacom mbeacom added backend This needs backend expertise. grants labels Oct 16, 2018
@mbeacom mbeacom self-assigned this Oct 16, 2018
@mbeacom mbeacom added this to In progress in Grants via automation Oct 16, 2018
@mbeacom mbeacom merged commit eba1f14 into grants Oct 16, 2018
Grants automation moved this from In progress to Done Oct 16, 2018
@mbeacom mbeacom deleted the grants-ms-mods branch October 16, 2018 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend This needs backend expertise.
Projects
No open projects
Grants
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant