1. klnusbaum
  2. django-storages


Kurtis Nusbaum  committed d38f799

Corrected some error in the previous commit which fixed modified_file for s3 and s3boto.

  • Participants
  • Parent commits 0130f8e
  • Branches default

Comments (0)

Files changed (2)

File storages/backends/s3.py

View file
             return self.generator.make_bare_url(self.bucket, name)
     def modified_time(self, name):
-        try:
-           from dateutil import parser, tz
-        except ImportError:
-            raise NotImplementedError()
+        from datetime import datetime
         name = self._clean_name(name)
         if self.entries:
             last_modified = self.entries.get(name).last_modified

File storages/backends/s3boto.py

View file
         return self.bucket.get_key(self._encode_name(name)).size
     def modified_time(self, name):
-        from datetime import parser
+        from datetime import datetime
         name = self._normalize_name(self._clean_name(name))
         entry = self.entries.get(name)
         # only call self.bucket.get_key() if the key is not found