def upload_to_mugshot(instance, filename):
    extension = filename.split('.')[-1].lower()
    salt, hash = generate_sha1(instance.id)
    path = userena_settings.USERENA_MUGSHOT_PATH % {'username': instance.user.username,
                                                    'id': instance.user.id,
                                                    'date': instance.user.date_joined,
                                                    'date_now': get_datetime_now().date()}
    return '%(path)s%(hash)s.%(extension)s' % {'path': path,
                                               'hash': hash[:10],
                                               'extension': extension}
Uploads a mugshot for a user to the ``USERENA_MUGSHOT_PATH`` and saving it
dataset/ETHPy150Open clione/django-kanban/src/core/userena/models.py/upload_to_mugshot