Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin doesn't appear in 'edit image' section #7

Open
sanderdatema opened this issue May 24, 2019 · 3 comments
Open

Plugin doesn't appear in 'edit image' section #7

sanderdatema opened this issue May 24, 2019 · 3 comments

Comments

@sanderdatema
Copy link

In the edit page of an image, your plugin doesn’t show (I do have have ‘Compressed Images’ in the menu, but your screenshot also shows an Image Minification area).

@KalobTaulien
Copy link
Owner

Hi @sanderdatema ,

When I tried to duplicate this, I ran into a similar problem.

Try putting 'wagtail_tinypng', above 'wagtail.images', in your INSTALLED_APPS. This solved it for me.

I'll update the README file too. Let me know if that works for you.

KalobTaulien added a commit that referenced this issue May 25, 2019
@sanderdatema
Copy link
Author

sanderdatema commented May 29, 2019

I use Wagtail 2.4 (Divio doesn't support a later version yet). I'll try your solution.

Edit: Ok, I think it works, because I get an error now when going to an image's page in Wagtail admin, where before nothing happened at all.

The error is Cannot query "image_name.jpg": Must be "Image" instance. I think that's because I use a custom image class. I had to because I need to add source and photographer's name to each image I use.

@KalobTaulien
Copy link
Owner

This is good to know, I'll test this out with a custom image model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants