from django.db import models from ..helpers.media import uuid_path class Image(models.Model): name = models.CharField(max_length=256) file = models.ImageField(upload_to=uuid_path)