File tree Expand file tree Collapse file tree
backend/tilavarauspalvelu Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111from tilavarauspalvelu .enums import AccessType , ReservationCancelReasonChoice , Weekday
1212from tilavarauspalvelu .integrations .email .template_context .common import get_staff_reservations_ext_link
13- from tilavarauspalvelu .integrations .email .typing import EmailTemplateType , EmailType
13+ from tilavarauspalvelu .integrations .email .typing import EmailType
1414from tilavarauspalvelu .translation import get_translated
1515from utils .date_utils import local_date , local_datetime
1616
Original file line number Diff line number Diff line change 22
33from typing import TYPE_CHECKING , ClassVar
44
5- from django .conf import settings
65from django .db import models
76from django .utils .translation import gettext_lazy as _
8- from easy_thumbnails .fields import ThumbnailerImageField
97from lazy_managers import LazyModelAttribute , LazyModelManager
108
119if TYPE_CHECKING :
@@ -31,7 +29,6 @@ class IntendedUse(models.Model):
3129 name : str = models .CharField (max_length = 200 )
3230
3331 image : ThumbnailerImageFieldFile | None
34- image = ThumbnailerImageField (upload_to = settings .RESERVATION_UNIT_PURPOSE_IMAGES_ROOT , null = True , blank = True )
3532
3633 # Translated field hints
3734 name_fi : str | None
Original file line number Diff line number Diff line change 22
33from typing import TYPE_CHECKING , ClassVar
44
5- from django .conf import settings
65from django .db import models
76from django .utils .translation import gettext_lazy as _
8- from easy_thumbnails .fields import ThumbnailerImageField
97from lazy_managers import LazyModelAttribute , LazyModelManager
108
119from tilavarauspalvelu .enums import ReservationUnitImageType
@@ -33,7 +31,6 @@ class ReservationUnitImage(models.Model):
3331 )
3432
3533 image : ThumbnailerImageFieldFile | None
36- image = ThumbnailerImageField (upload_to = settings .RESERVATION_UNIT_IMAGES_ROOT , null = True , blank = True )
3734 image_type : ReservationUnitImageType = TextChoicesField (enum = ReservationUnitImageType )
3835
3936 large_url : str = models .URLField (max_length = 255 , default = "" , blank = True )
You can’t perform that action at this time.
0 commit comments