Django ImageField upload_to erro

Hello Everyone,

I’m having difficulties on a matter that should be relatively simple, but yet I get an error.
In my app Contracts I have the following structure for models:
Contracts
└── models
├── init.py
└── models.py

with the following model:

class ItemBase(models.Model):
    owner = models.ForeignKey(User, related_name='%(class)s_related', on_delete=models.CASCADE)
    name = models.CharField(max_length=250)

    created = models.DateTimeField(auto_now_add=True)
    updated = models.DateTimeField(auto_now=True)

def file_directory_path(instance, filename):
    ext = filename.split('.')[-1]
    filename = "%s.%s" % (instance.name, ext)
    return os.path.join('Contratti', 'files', filename)

class Image(ItemBase): 
    image = models.ImageField(upload_to=image_directory_path)

very straight forward…but when I run migrations I get:

(‘image’, models.ImageField(upload_to=Contracts.models.models.Image.image_directory_path)),
AttributeError: module ‘django.db.models’ has no attribute ‘Image’

The path specified in the migrations file is correct, why is dajngo trying to look for the upload method in django.db.models??

Thanks for any help.