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 permission used by the short forms would be looked up in the registry in much the same way as it already is, but the name to look up would be autogenerated in much the same way that the Django REST Framework integration works, by extracting the app and model name from the QuerySet, and substituting in the supplied action (or constants in the last three cases).
The text was updated successfully, but these errors were encountered:
Currently, calls to
visible_to
look like this:I'd like to change the signature to
visible_to(user, *, using, action)
, so that the above call looks like one of the following:We could even go further for the three conventional actions for which it makes sense to filter QuerySets:
The permission used by the short forms would be looked up in the registry in much the same way as it already is, but the name to look up would be autogenerated in much the same way that the Django REST Framework integration works, by extracting the app and model name from the QuerySet, and substituting in the supplied action (or constants in the last three cases).
The text was updated successfully, but these errors were encountered: