KalobTaulien / wagtail-tinypng

Lossless image minification using TinyPNG
10 stars 1 forks source link

ModelAdmin displays WagtailTinyPNGImage images instead of Wagtail Images #5

Closed KalobTaulien closed 5 years ago

KalobTaulien commented 5 years ago

A WagtailTinyPNGImage may not exist from an Image, so we should probably list wagtail Images instead of WagtailTinyPNGImage in the ModelAdmin.

KalobTaulien commented 5 years ago

Mostly fixed with a receiver.

Needs a sync option for existing images without a WagtailTinyPNGImage OneToOne instance.

KalobTaulien commented 5 years ago

Added management command for syncing existing Wagtail images with the WagtailTinyPNGImage model.

The command is ./manage.py sync_tinypng_images