duointeractive/django-athumb — pull request #15 by chenhouwu (2012-08-07 05:56:39+00:00)
Title: fix a bug: upload_to of the ImageWithThumbnailField will be exercuted in every run of the command

if a ImageWithThumbnailField has a upload_to parameter such as this:

def upload_to(instance, filename):
return filename+str(uuid.uuid4())

then each time the management commmand runs, the name of the image will be append another uuid.

So we should use *generate_thumbs* rather than *save* here.