您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

plugin_example.py 292 B

12345678910
  1. from core.models import Image
  2. from django_images.models import Thumbnail
  3. class Plugin:
  4. def process_image_pre_creation(self, django_settings, image_instance: Image):
  5. pass
  6. def process_thumbnail_pre_creation(self, django_settings, thumbnail_instance: Thumbnail):
  7. pass