diff --git a/welco/contacts/views.py b/welco/contacts/views.py index 8e81420..956ae19 100644 --- a/welco/contacts/views.py +++ b/welco/contacts/views.py @@ -133,7 +133,7 @@ class ContactAdd(FormView): msg['password'] = str(random.SystemRandom().random()) msg['send_registration_email'] = getattr(settings, 'CONTACT_SEND_REGISTRATION_EMAIL', True) - authentic_site = settings.KNOWN_SERVICES.get('authentic').values()[0] + authentic_site = list(settings.KNOWN_SERVICES.get('authentic').values())[0] authentic_url = authentic_site.get('url') authentic_orig = authentic_site.get('orig') authentic_secret = authentic_site.get('secret') diff --git a/welco/utils.py b/welco/utils.py index 7d26ff4..ada12d9 100644 --- a/welco/utils.py +++ b/welco/utils.py @@ -148,7 +148,7 @@ def push_wcs_formdata(request, formdef_reference, context=None): def get_wcs_data(endpoint, params=None): - wcs_site = get_wcs_services().values()[0] + wcs_site = list(get_wcs_services().values())[0] wcs_site_url = wcs_site['url'] if not wcs_site_url.endswith('/'): wcs_site_url += '/'