Wildewidgets Integration Reference

Classes

class ldaporm.wildewidgets.LdapModelTableMixin[source]

Bases: object

A mixin that makes BasicModelTable work with ldaporm.models.Model.

search(qs: F, value: str) list[ldaporm.models.Model][source]

Apply a global search across all searchable columns.

This method is called when a user enters a search term in the main dataTables.js search input. It applies the search across all searchable columns and returns distinct results.

Parameters:
  • qs – The queryset to search

  • value – The search term

Returns:

The filtered queryset containing only matching records

Return type:

models.QuerySet

search_query(qs: F, value: str) F | None[source]

Build a ldaporm.managers.F object for performing global search across multiple columns.

This method constructs a query that searches all searchable columns for the given value, using OR logic to match records that have the value in any searchable column.

Parameters:
Returns:

An ldaporm F object

representing the search, or None if no searchable columns exist

Return type:

F | None

model: type[ldaporm.models.Model]