def submissionfile_post_save(sender, instance, signal, created, **kwargs):
    '''
        Update MD5 field for newly uploaded files.
    '''
    if created:
        logger.debug("Running post-processing for new submission file.")
        instance.md5 = instance.attachment_md5()
        instance.save()
Update MD5 field for newly uploaded files.