示例#1
0
 def queryset(self, request, query=None):
     qs = super(PrefixApplication, self).queryset(request, query=query)
     return qs.filter(PrefixAccess.read_Q(request.user))
示例#2
0
文件: views.py 项目: skripkar/noc
 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"))