See #890: tweaks / perf improvements
This commit is contained in:
parent
b363d1117c
commit
7a7cc55143
6 changed files with 56 additions and 34 deletions
|
|
@ -90,6 +90,10 @@ def get_boolean_filter(name):
|
|||
return {"handler": lambda v: Q(**{name: clean_boolean_filter(v)})}
|
||||
|
||||
|
||||
def get_generic_relation_filter(relation_name, choices):
|
||||
return {"handler": lambda v: fields.get_generic_filter_query(v, relation_name=relation_name, choices=choices)}
|
||||
|
||||
|
||||
class DummyTypedMultipleChoiceField(forms.TypedMultipleChoiceField):
|
||||
def valid_value(self, value):
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue