-
Notifications
You must be signed in to change notification settings - Fork 48
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
Allow role assignment queries to use .only #482
base: devel
Are you sure you want to change the base?
Conversation
d05b0a5
to
6a5b19d
Compare
I was unhappy with any version that modifies Wait, that might be another test case. |
No that concern is fine. Test case: @pytest.mark.django_db
def test_save_with_deferred_field(rando, inventory, inv_rd, global_inv_rd):
assignment = inv_rd.give_permission(rando, inventory)
reload_assignment = RoleUserAssignment.objects.filter(id=assignment.id).only('object_id').first()
assert reload_assignment
reload_assignment.save(update_fields=['role_definition_id']) When this runs, the |
I know this was on hold as non-urgent, but I see very little risk in it, and we have been slowed down by this in other development. |
f4922a8
to
b1140f6
Compare
Quality Gate passedIssues Measures |
Fixes #449