mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-05-01 09:54:43 +00:00
IKContentFile must have name attr
This commit is contained in:
parent
570e7bd640
commit
6377f89e85
1 changed files with 4 additions and 0 deletions
|
|
@ -148,6 +148,10 @@ class IKContentFile(ContentFile):
|
|||
mimetype = extension_to_mimetype(ext)
|
||||
self.file.content_type = mimetype
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
return self.file.name
|
||||
|
||||
def __str__(self):
|
||||
return smart_str(self.file.name or '')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue