Code documentation¶
django_kmatch¶
-
class
django_kmatch.fields.
KField
(*args, **kwargs)¶ Stores a kmatch pattern and returns a compiled K object.
The KField field stores a kmatch pattern in a JSONField. The pattern is compiled and returned as a K object when accessing the field. Invalid kmatch patterns cannot be stored.
-
get_db_prep_value
(value, connection, prepared=False)¶ Converts a K object to a pattern.
-
to_python
(value)¶ Used to obtain a K object for a provided pattern.
-