Load settings from .env file.
This commit is contained in:
parent
f221740228
commit
3efa217716
4 changed files with 31 additions and 13 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue