Merge pull request 'Hotfix: EcoAccount serializable' (#361) from 360_EcoAccount_not_serializable into django_4

Reviewed-on: SGD-Nord/konova#361
This commit is contained in:
mpeltriaux 2023-11-29 12:22:42 +01:00
commit 4000eed75d

View File

@ -32,3 +32,9 @@ class EcoAccountAutocomplete(Select2QuerySetView):
Q(title__icontains=self.q) Q(title__icontains=self.q)
).distinct() ).distinct()
return qs return qs
def get_result_label(self, result):
return str(result)
def get_selected_result_label(self, result):
return str(result)