-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closes #6414: Enable assigning prefixes to various object types #17692
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
Conversation
initial['scope'] = instance.scope | ||
kwargs['initial'] = initial | ||
|
||
super().__init__(*args, **kwargs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again seems like a good potential place for a mixin to reduce boilerplate as we are going to be using this same pattern in about 5 places.
c732a71
to
85c2490
Compare
Temporarily blocked by some prework for GFK bulk edit support in #17789 |
0b6673e
to
d10956e
Compare
There's an issue with generating filters for related models, because they're picking up the leading underscore of the ForeignKey fields. Trying to decide if we should ditch the underscores or adapt the dynamic logic to account for these (which will probably involve introspecting the model's filterset). |
Fixes: #6414
scope
GenericForeignKey on Prefixsite
ForeignKey field from Prefix