dominno / django-moderation

django-moderation is reusable application for Django framework, that allows to moderate any model objects.
BSD 3-Clause "New" or "Revised" License
269 stars 90 forks source link

Error in admin view when there is no associated file for ImageField #26

Closed ysugiura closed 13 years ago

ysugiura commented 13 years ago

I encountered the error below in the admin page for moderated object. This happens when moderated object has an image field but associated file is not uploaded.

TemplateSyntaxError at /admin/moderation/moderatedobject/3/
Caught ValueError while rendering: The 'foo' attribute has no file associated with it.
dominno commented 13 years ago

Fixed by https://github.com/dominno/django-moderation/commit/bf2e31df0b2a1293451e2b9d919754f129e14cbd