Load settings from .env file.

This commit is contained in:
krek0 2026-04-24 21:42:23 +02:00
parent 53dd940409
commit 8e217a51a0
4 changed files with 31 additions and 13 deletions

View file

@ -217,8 +217,14 @@ class Gallery(models.Model):
class ImageModel(models.Model):
image = models.ImageField(
_("image"), max_length=IMAGE_FIELD_MAX_LENGTH, upload_to=get_storage_path
_("image"),
max_length=IMAGE_FIELD_MAX_LENGTH,
upload_to=get_storage_path,
width_field="image_width",
height_field="image_height",
)
image_width = models.PositiveIntegerField(editable=False, null=True)
image_height = models.PositiveIntegerField(editable=False, null=True)
date_taken = models.DateTimeField(
_("date taken"),
null=True,