Refactoring the filtering by permissions with django-1.7 djorm-pgarray features