2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-05 13:10:57 +00:00

Add a 'reference_int' field to the models, to be used as a secondary index

This commit is contained in:
Oliver
2021-10-14 17:45:43 +11:00
parent e46875b0a3
commit 7ce0f817aa
9 changed files with 97 additions and 26 deletions

View File

@ -85,7 +85,7 @@ class BuildList(generics.ListCreateAPIView):
]
ordering_field_aliases = {
'reference': ['integer_ref', 'reference'],
'reference': ['reference_int', 'reference'],
}
search_fields = [