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

[feature] MultitenantAdminMixin: filter by the organization of the object if obejct exists #281

Open
nemesifier opened this issue Oct 1, 2021 · 1 comment

Comments

@nemesifier
Copy link
Member

We may be able to restrict the queryset of fields which relate to other models so that only objects that relate to the organization of the parent are shown.

We have to be careful in handling different cases:

  • Normal django admin change/add pages (new objects don't have any org set so it can't be done)
  • Inlines (maybe we can implement it here too but we should provide a way to disable it if needed)
@pandafy
Copy link
Member

pandafy commented Oct 4, 2021

On changing the organization of the object in the change form, the options for the choice field should also get updated. This will require creating an internal API endpoint for django admin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants