8 lines
No EOL
190 B
Python
8 lines
No EOL
190 B
Python
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) |