Skip to content
Browse files

[py3] Fed strftime with unicode on Python 3

  • Loading branch information...
1 parent c35501a commit 9cb80356fc4cff7b8ecda91877755d6e361667c4 @claudep claudep committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/db/models/fields/
4 django/db/models/fields/
@@ -8,7 +8,7 @@
from import default_storage
from django.core.files.images import ImageFile
from django.db.models import signals
-from django.utils.encoding import force_text, smart_bytes
+from django.utils.encoding import force_text, smart_str
from django.utils import six
from django.utils.translation import ugettext_lazy as _
@@ -280,7 +280,7 @@ def contribute_to_class(self, cls, name):
setattr(cls,, self.descriptor_class(self))
def get_directory_name(self):
- return os.path.normpath(force_text(
+ return os.path.normpath(force_text(
def get_filename(self, filename):
return os.path.normpath(

0 comments on commit 9cb8035

Please sign in to comment.
Something went wrong with that request. Please try again.