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': [ {