Skip to content

Commit

Permalink
[Fixes GeoNode#10251] improve feedback to the user and UI experience …
Browse files Browse the repository at this point in the history
…of batch permisisons assignment (GeoNode#10281) (GeoNode#10282)

* [Fixes GeoNode#10251] improve feedback to the user and UI experience

* [Fixes GeoNode#10251] improve feedback to the user and UI experience

* [Fixes GeoNode#10251] improve feedback to the user and UI experience

Co-authored-by: mattiagiupponi <[email protected]>
  • Loading branch information
2 people authored and ridoo committed Sep 18, 2023
1 parent fad9b26 commit e1e17dc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions geonode/base/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,20 @@ def get_results(self, context):
]


class DatasetsAutocomplete(SimpleSelect2View):
model = Dataset
filter_arg = 'title__icontains'

def get_results(self, context):
return [
{
'id': self.get_result_value(result),
'text': self.get_result_label(result.title),
'selected_text': self.get_selected_result_label(result.title),
} for result in context['object_list']
]


class ThesaurusAvailable(autocomplete.Select2QuerySetView):
def get_queryset(self):
tid = self.request.GET.get("sysid")
Expand Down

0 comments on commit e1e17dc

Please sign in to comment.