Hi all, I'm building an application that uses Django Rest Framework and Django Guardian. I have to implement a permissions system such that when a user requests data from a materialized view, I need to omit certain rows from the returned queryset based on the user's group.
For example, if my app contains 5 models: - User Model - User Group Model - Source Model - Article Model (with manytomany to Source Model) - Article Materialized View (consists of a flat table with an array field for sources If a user searches for articles, but because they belong to a certain group that doesn't allow the source "Example Source", the queryset would return articles from the materialized view that omit articles related to the source "Example Source". The challenge I'm facing is that I had a permissions system in place for a normalized model, but since switching to materialized view (the denormalized model), I'm unsure how to go about implementing something like this. Any help appreciated. Best, Will -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d0085c29-ad47-4050-91a8-42c14daf81bbo%40googlegroups.com.