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
I have some use cases where my views don't use models, I think it would be nice if dry-rest-permissions supports it, right now I could override my serializer so the meta.Model is a custom class with the has_* functions but I think having a get_permissions_class or a similar named function in the view to return it would be better, maybe that could be in a Mixin and the default would be the behavior we have now?
The text was updated successfully, but these errors were encountered:
@mesin at the end I think I went another way, but what I said should work, dry-rest-permissions checks for the model in the serializer IIRC so modifying the serializer to have a non-django "model" with the permission functions should work
I have some use cases where my views don't use models, I think it would be nice if dry-rest-permissions supports it, right now I could override my serializer so the meta.Model is a custom class with the has_* functions but I think having a
get_permissions_class
or a similar named function in the view to return it would be better, maybe that could be in a Mixin and the default would be the behavior we have now?The text was updated successfully, but these errors were encountered: