I have a model defined in Django 3.1 like
class MyModel(models.Model): def get_path(path): def wrapper(instance, filename): # code to make