From d498fec7eb906a2daf53e7381a969c7de337836a Mon Sep 17 00:00:00 2001 From: Eduardo Poiate Date: Wed, 21 Oct 2020 17:55:19 -0300 Subject: [PATCH] Fixing travis' build errors --- src/dal_select2/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dal_select2/views.py b/src/dal_select2/views.py index 6b4f44ce2..467b7d91a 100644 --- a/src/dal_select2/views.py +++ b/src/dal_select2/views.py @@ -86,11 +86,10 @@ class Select2GroupQuerySetView(Select2QuerySetView): related_field_name = 'name' def get_results(self, context): - """Returns the options grouped by a common related model. + """Return the options grouped by a common related model. Raises ImproperlyConfigured if self.group_by_name is not configured """ - if not self.group_by_related: raise ImproperlyConfigured("Missing group_by_related.")