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

Improved docs to include example on how to use plain ImageSpec (defin… #414

Merged
merged 2 commits into from
May 10, 2017

Conversation

mikob
Copy link
Contributor

@mikob mikob commented Apr 10, 2017

…ed outside of model, not ImageSpecField) with AdminThumbnail.

I hope this is the cleanest way of doing that?

…ed outside of model, not ImageSpecField) with AdminThumbnail.
Copy link
Collaborator

@vstoykov vstoykov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mikob thanks for your contribution.

Can you replace model with instance or obj?

README.rst Outdated
format = 'JPEG'
options = {'quality': 60 }

def cached_admin_thumb(model):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that model is a confusing name for this variable because the actual instance will be passed here.

@mikob
Copy link
Contributor Author

mikob commented May 10, 2017

OK, changed it.

@vstoykov
Copy link
Collaborator

Thank you for your contribution.

@vstoykov vstoykov merged commit 3d37fb3 into matthewwithanm:develop May 10, 2017
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

Successfully merging this pull request may close these issues.

2 participants