From 8e11ed5ebf8d0a695bac0419b885d5388b588cf1 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Tue, 2 Feb 2021 15:45:38 +0100 Subject: [PATCH] Fix error on Admin panel when creating new quota --- lib/galaxy/webapps/galaxy/controllers/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/webapps/galaxy/controllers/admin.py b/lib/galaxy/webapps/galaxy/controllers/admin.py index 7fe0ca4de33..36b1e38e098 100644 --- a/lib/galaxy/webapps/galaxy/controllers/admin.py +++ b/lib/galaxy/webapps/galaxy/controllers/admin.py @@ -677,8 +677,8 @@ class AdminGalaxy(controller.JSAppLauncher, AdminActions, UsesQuotaMixin, QuotaP .order_by(trans.app.model.Group.table.c.name): all_groups.append((group.name, trans.security.encode_id(group.id))) default_options = [('No', 'no')] - for typ in trans.app.model.DefaultQuotaAssociation.types.__dict__.values(): - default_options.append(('Yes, ' + typ, typ)) + for type_ in trans.app.model.DefaultQuotaAssociation.types: + default_options.append(('Yes, ' + type_, type_)) return {'title': 'Create Quota', 'inputs': [ {