0001-assets-don-t-pass-svg-to-sorl.thumbnail-26049.patch
combo/apps/assets/views.py | ||
---|---|---|
82 | 82 |
return self.asset.asset.url if self.asset else '' |
83 | 83 | |
84 | 84 |
def thumb(self): |
85 |
return get_thumbnail(self.asset.asset, '75x75').url |
|
85 |
if self.asset.asset.path.lower().endswith('.svg'): |
|
86 |
return self.asset.asset.url |
|
87 |
else: |
|
88 |
return get_thumbnail(self.asset.asset, '75x75').url |
|
86 | 89 | |
87 | 90 |
@classmethod |
88 | 91 |
def get_assets(cls): |
89 |
- |