Matthew Tretter
d80f2f26a9
"source" now refers to the file itself
2012-12-11 22:53:13 -05:00
Matthew Tretter
aaa823afd6
Add flake8 linting
2012-11-05 23:34:32 -05:00
Matthew Tretter
548fb65618
Allow callables for AdminThumbnail image_field arg
...
This allows images from related models to be displayed. Closes #138 .
2012-07-19 20:08:03 -04:00
Matthew Tretter
c3ef5172c3
Rename ImageSpec to ImageSpecField
...
The ImageSpec class remains for now, but using it throws
deprecation warnings.
2012-02-11 13:06:48 -05:00
Matthew Tretter
3022eb037d
Proper handling of empty images and missing fields
...
Fixes #42
2011-11-03 12:33:22 -04:00
Matthew Tretter
bbc0bffd88
Fixes error message
...
Arguments were in the wrong order. Also, shows class name in string
representation of instance isn't helpful.
2011-11-03 12:26:23 -04:00
Bryan Veloso
06c1c678b6
PEP8-ing and whitespacing.
2011-10-31 23:12:03 +09:00
Bryan Veloso
6adadafc74
PEP8 and import tweaks.
2011-10-20 12:12:47 +09:00
Matthew Tretter
b9aa69e0c0
AdminThumbnailView is now AdminThumbnail
...
I never liked that the "AdminThumbnailView" was supposed to be defined
on the model, but never looked into it.
This commit puts the definition back where it belongs: in the admin.
Instead of requiring you to add a field (with view logic) to your
model, you now just add a property to your admin class and specify
that property in the `list_display` list.
2011-10-02 21:58:08 -04:00