chore: remove dead code
This commit is contained in:
@@ -10,7 +10,6 @@ from pathlib import Path
|
|||||||
from PIL import Image, ImageOps
|
from PIL import Image, ImageOps
|
||||||
from tinymce.models import HTMLField
|
from tinymce.models import HTMLField
|
||||||
from map_location.fields import LocationField
|
from map_location.fields import LocationField
|
||||||
# default_app_config = 'map_location.apps.MapLocationConfig'
|
|
||||||
|
|
||||||
from app.models.category import Category
|
from app.models.category import Category
|
||||||
from common.form.audio_file import AudioFileField
|
from common.form.audio_file import AudioFileField
|
||||||
@@ -41,7 +40,6 @@ class Place(models.Model):
|
|||||||
title = models.CharField('Titel', max_length=100)
|
title = models.CharField('Titel', max_length=100)
|
||||||
image = FileWithImagePreview('Bild', blank=True, null=True,
|
image = FileWithImagePreview('Bild', blank=True, null=True,
|
||||||
upload_to=overwrite_img_upload)
|
upload_to=overwrite_img_upload)
|
||||||
# help_text='Ideal: 600 x 400 px (JPEG oder PNG)'
|
|
||||||
audio = AudioFileField('Audio', blank=True, null=True,
|
audio = AudioFileField('Audio', blank=True, null=True,
|
||||||
upload_to=overwrite_audio_upload)
|
upload_to=overwrite_audio_upload)
|
||||||
location = LocationField('Position', blank=True, null=True, options={
|
location = LocationField('Position', blank=True, null=True, options={
|
||||||
@@ -82,13 +80,6 @@ class Place(models.Model):
|
|||||||
Place.update_json()
|
Place.update_json()
|
||||||
return rv
|
return rv
|
||||||
|
|
||||||
# def delete(self, *args, **kwargs):
|
|
||||||
# theId = str(self.pk)
|
|
||||||
# rv = super().delete(*args, **kwargs)
|
|
||||||
# shutil.rmtree(settings.MEDIA_ROOT / theId, ignore_errors=True)
|
|
||||||
# self.update_json()
|
|
||||||
# return rv
|
|
||||||
|
|
||||||
def update_cover_image(self):
|
def update_cover_image(self):
|
||||||
path = self.fixed_os_path('cov.jpg')
|
path = self.fixed_os_path('cov.jpg')
|
||||||
if self.image:
|
if self.image:
|
||||||
|
|||||||
Reference in New Issue
Block a user