From 548c77e9d0a1974af043eff72478018639f8dd2d Mon Sep 17 00:00:00 2001 From: xray7224 Date: Wed, 18 Dec 2013 13:25:51 +0000 Subject: [PATCH 1/2] Add python 2.6 support --- oauth2_provider/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oauth2_provider/models.py b/oauth2_provider/models.py index ec9652877..b9d9a3e07 100644 --- a/oauth2_provider/models.py +++ b/oauth2_provider/models.py @@ -96,7 +96,7 @@ def clean(self): and self.authorization_grant_type \ in (AbstractApplication.GRANT_AUTHORIZATION_CODE, AbstractApplication.GRANT_IMPLICIT): - error = _('Redirect_uris could not be empty with {} grant_type') + error = _('Redirect_uris could not be empty with {0} grant_type') raise ValidationError(error.format(self.authorization_grant_type)) def get_absolute_url(self): @@ -232,6 +232,6 @@ def get_application_model(): raise ImproperlyConfigured(e) app_model = get_model(app_label, model_name) if app_model is None: - e = "APPLICATION_MODEL refers to model {} that has not been installed" + e = "APPLICATION_MODEL refers to model {0} that has not been installed" raise ImproperlyConfigured(e.format(oauth2_settings.APPLICATION_MODEL)) return app_model From b284e9ac5faeb661a2952b9f330c072c68e69329 Mon Sep 17 00:00:00 2001 From: xray7224 Date: Wed, 18 Dec 2013 14:08:12 +0000 Subject: [PATCH 2/2] Add python 2.6 to travis, tox and setup file --- .travis.yml | 1 + README.rst | 2 +- setup.py | 1 + tox.ini | 20 +++++++++++++++++++- 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f30d997a9..5939af4b8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ language: python python: + - "2.6" - "2.7" install: diff --git a/README.rst b/README.rst index da6ec3d3b..d183446dc 100644 --- a/README.rst +++ b/README.rst @@ -41,7 +41,7 @@ guidelines