mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-17 05:40:25 +00:00
Merge pull request #19 from joshourisman/develop
Allow the PK of an object to be used in the filename of images generated.
This commit is contained in:
commit
db142eb23f
1 changed files with 2 additions and 1 deletions
|
|
@ -83,7 +83,8 @@ class Accessor(object):
|
|||
if issubclass(processor, processors.Format):
|
||||
extension = processor.extension
|
||||
cache_filename = self._obj._ik.cache_filename_format % \
|
||||
{'filename': filename,
|
||||
{'pk': self._obj.pk,
|
||||
'filename': filename,
|
||||
'specname': self.spec.name(),
|
||||
'extension': extension.lstrip('.')}
|
||||
if callable(self._obj._ik.cache_dir):
|
||||
|
|
|
|||
Loading…
Reference in a new issue