djangosnippets.org: Latest snippets posted by hanksimshttp://djangosnippets.org/users/hanksims/2008-08-07T12:38:30.713523-05:00hanksimsCustomImageField for Django 1.0 alpha
2008-08-07T12:38:30.713523-05:00hanksimshttp://djangosnippets.org/snippets/949/<p>The venerable CustomImageField, invented by <a href="http://scottbarnham.com/blog/2007/07/31/uploading-images-to-a-dynamic-path-with-django/">Scott Barnham</a> and rejiggered for newforms-admin by <a href="http://pandemoniumillusion.wordpress.com/2008/08/06/django-imagefield-and-filefield-dynamic-upload-path-in-newforms-admin/#comments">jamstooks</a>.</p>
<p>This here is a stab at a <a href="http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Signalrefactoring">post-Signals-refactor</a> version. Seems to do 'er.</p>
<p>Note: This should be pointless once <a href="http://code.djangoproject.com/ticket/5361">fs-refactor</a> lands.</p>
Freely redistributable