Skip to content

Commit 447bec8

Browse files
committed
Updated LocalStorageFileField. Now it's working with mongoengine 0.8.3
1 parent c4c5ceb commit 447bec8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fields/fields.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def total_seconds(value):
5353
(value.microseconds / 1000000.0)
5454

5555

56-
class LocalImageField(BaseField):
56+
class LocalStorageFileField(BaseField):
5757

5858
proxy_class = FieldFile
5959

@@ -68,7 +68,7 @@ def __init__(self,
6868
self.upload_to = upload_to
6969
if callable(upload_to):
7070
self.generate_filename = upload_to
71-
super(LocalImageField, self).__init__(**kwargs)
71+
super(LocalStorageFileField, self).__init__(**kwargs)
7272

7373
def __get__(self, instance, owner):
7474
if instance is None:

0 commit comments

Comments
 (0)