예제 #1
0
 def get_filterstr(qs):
     connection = connections['ldap']
     compiler = SQLCompiler(
         query=qs.query,
         connection=connection,
         using=None,
     )
     return query_as_ldap(qs.query, compiler, connection).filterstr
예제 #2
0
 def as_ldap_query(self, qs):
     connection = connections['ldap']
     compiler = SQLCompiler(
         query=qs.query,
         connection=connection,
         using=None,
     )
     return query_as_ldap(qs.query, compiler, connection)