You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The original snippet (https://djangosnippets.org/snippets/2887/) was written this way. I don't remember any reason, why this couldn't be Mixin, but I don't know if there is no obstacle either.
You are free to rewrite this to be Mixin (and include the mixup for backward compatibility) and make PR.
I tried to do this, but I am not sure if it is possible with metaclasses.
Anyway, I use the RelatedFieldAdmin class on some places together with other base classes derived from ModelAdmin and it works, so I am not sure, if the current representation have any restriction from being used as Mixin.
Only one question.
Why didn't you create a Mixin instead of a new ModelAdmin ?
Thanks
The text was updated successfully, but these errors were encountered: