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

Closes #15464: Move permission assignments to user & group models #15554

Merged
merged 2 commits into from
Mar 29, 2024

Conversation

jeremystretch
Copy link
Member

Fixes: #15464

  • Remove the groups and users ManyToManyFields from ObjectPermission
  • Introduce an object_permissions ManyToManyField on the User & Group models
  • Add a migration to fake the field changes by renaming the SQL table & related indexes
  • Update the model forms & API serializers to accommodate the reversed relationships

@jeremystretch jeremystretch added this to the v4.0 milestone Mar 28, 2024
@jeremystretch jeremystretch force-pushed the 15464-objectpermission-m2m-fields branch from 0887aa9 to a673015 Compare March 28, 2024 20:22
@jeremystretch jeremystretch merged commit c8d9d93 into feature Mar 29, 2024
6 checks passed
@jeremystretch jeremystretch deleted the 15464-objectpermission-m2m-fields branch March 29, 2024 18:57
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants