def queryset(self, request, query=None): qs = super(PrefixApplication, self).queryset(request, query=query) return qs.filter(PrefixAccess.read_Q(request.user))
def queryset(self, request, query=None): qs = super(AddressApplication, self).queryset(request, query=query) return qs.filter( PrefixAccess.read_Q(request.user, field="address", table="ip_address"))