jdriscoll/django-imagekit — pull request #139 by roj27 (2012-06-20 21:34:37+00:00)
Title: One solution to Issue #138: 

`__init__` accepts `image_fk` arg in order to allow thumbnail to be displayed within inline forms; `__call__` then tests for the argument.

Another option is to provide the `image_field` in a dot format: e.g. image.thumbnail

```python
def __call__(self, obj):

if self.image_field.find('.') == -1:
thumbnail = getattr(obj, self.image_field, None)
else:
thumbnail = getattr(getattr(obj, self.image_field.split('.')[0]), self.image_field.split('.')[1], None)
...

```

However, thought the dot notation could be a little confusing and went with the additional arg