from django.utils import timezone
from django.utils.text import slugify


def generate_billed_document_path(instance, filename):
    cur_time = timezone.now()

    return f"{cur_time.strftime('%Y/%m')}/{slugify(instance.name)}-{cur_time.strftime('%d.%m.%Y %H:%M')}.csv"

[((6, 15, 6, 29), 'django.utils.timezone.now', 'timezone.now', ({}, {}), '()', False, 'from django.utils import timezone\n'), ((8, 43, 8, 65), 'django.utils.text.slugify', 'slugify', ({(8, 51, 8, 64): 'instance.name'}, {}), '(instance.name)', False, 'from django.utils.text import slugify\n')]