mirror of
https://github.com/rjNemo/villafleurie
synced 2026-06-06 02:16:47 +00:00
* crete setting module to split prod and dev configs * fix calendar midmatch * lint imports using isort * doc: add doctrings
11 lines
273 B
Python
11 lines
273 B
Python
from django.db import models
|
|
|
|
|
|
class Picture(models.Model):
|
|
""" Picture manages media and set alt tags. """
|
|
|
|
def __str__(self):
|
|
return self.alt
|
|
|
|
img = models.ImageField(upload_to='img/', null=True, blank=True)
|
|
alt = models.CharField(max_length=100)
|