Skip to content

Commit 548c77e

Browse files
author
xray7224
committed
Add python 2.6 support
1 parent a36f633 commit 548c77e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oauth2_provider/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def clean(self):
9696
and self.authorization_grant_type \
9797
in (AbstractApplication.GRANT_AUTHORIZATION_CODE,
9898
AbstractApplication.GRANT_IMPLICIT):
99-
error = _('Redirect_uris could not be empty with {} grant_type')
99+
error = _('Redirect_uris could not be empty with {0} grant_type')
100100
raise ValidationError(error.format(self.authorization_grant_type))
101101

102102
def get_absolute_url(self):
@@ -232,6 +232,6 @@ def get_application_model():
232232
raise ImproperlyConfigured(e)
233233
app_model = get_model(app_label, model_name)
234234
if app_model is None:
235-
e = "APPLICATION_MODEL refers to model {} that has not been installed"
235+
e = "APPLICATION_MODEL refers to model {0} that has not been installed"
236236
raise ImproperlyConfigured(e.format(oauth2_settings.APPLICATION_MODEL))
237237
return app_model

0 commit comments

Comments
 (0)