From 48e42996ef463ca03664fbeafa047b1338998686 Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Mon, 10 Jun 2019 09:10:12 -0400 Subject: Fix searchable select field scaling Change-Id: Id6fb052b2158ee0db30fd11b520194d3825b677f Signed-off-by: Sawyer Bergeron --- src/workflow/forms.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/workflow') diff --git a/src/workflow/forms.py b/src/workflow/forms.py index bd2d14a..0fb45d6 100644 --- a/src/workflow/forms.py +++ b/src/workflow/forms.py @@ -173,8 +173,8 @@ class SWConfigSelectorForm(SearchableSelectAbstractForm): for bundle in queryset: items[bundle.id] = { - 'small_name': bundle.name, - 'expanded_name': bundle.owner.username, + 'expanded_name': bundle.name, + 'small_name': bundle.owner.username, 'string': bundle.description, 'id': bundle.id } @@ -188,8 +188,8 @@ class OPNFVSelectForm(SearchableSelectAbstractForm): for config in queryset: items[config.id] = { - 'small_name': config.name, - 'expanded_name': config.bundle.owner.username, + 'expanded_name': config.name, + 'small_name': config.bundle.owner.username, 'string': config.description, 'id': config.id } @@ -203,8 +203,8 @@ class ResourceSelectorForm(SearchableSelectAbstractForm): for bundle in queryset: items[bundle.id] = { - 'small_name': bundle.name, - 'expanded_name': bundle.owner.username, + 'expanded_name': bundle.name, + 'small_name': bundle.owner.username, 'string': bundle.description, 'id': bundle.id } -- cgit 1.2.3-korg