dfunckt / django-rules

Awesome Django authorization, without the database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using rules with querysets

iSteal opened this issue · comments

Is there any way to apply rules to queries, such as models.Test.objects.all()? I know that I can run rules on the object and then recreate the query with those objects but that would be slow, especially for large lists. I thought about a custom manager, but I run into the same problem. What would be the best way to do this?

This is not possible to do. It has been discussed in the past. See #80 and #40. Closing.