Load settings from .env file.

This commit is contained in:
krek0 2026-04-24 21:42:23 +02:00
parent f221740228
commit 3efa217716
4 changed files with 31 additions and 13 deletions

View file

@ -224,8 +224,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,