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, 'django.utils.timezone.now', 'timezone.now', ([], {}), False, 'from django.utils import timezone\n'), (8, 'django.utils.text.slugify', 'slugify', (['instance.name'], {}), False, 'from django.utils.text import slugify\n')]