From f1760d3a7c8e500d017e44c8943f803c0a2f0c12 Mon Sep 17 00:00:00 2001 From: Warnar Boekkooi Date: Tue, 21 Jan 2014 10:57:31 +0800 Subject: [PATCH] Use ugettext_lazy to avoid django dev branch error --- oauth2_provider/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth2_provider/models.py b/oauth2_provider/models.py index b9d9a3e07..d47699fc9 100644 --- a/oauth2_provider/models.py +++ b/oauth2_provider/models.py @@ -4,7 +4,7 @@ from django.db import models from django.utils import timezone from django.db.models import get_model -from django.utils.translation import ugettext as _ +from django.utils.translation import ugettext_lazy as _ from django.utils.encoding import python_2_unicode_compatible from django.core.exceptions import ImproperlyConfigured