We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is a request-for-enhancement: It would be really nice to have a PrivateImageField that borrows functionality from the standard ImageField class.
The text was updated successfully, but these errors were encountered:
Agreed, that would be a nice addition! A patch for this feature is more then welcome!
Sorry, something went wrong.
This is really amazing package for me. Please let me know if PrivateImageField will add? Thanks @vdboor and @AndyLPK247 for your effort 👍
btw, I defined this locally, is this what we're looking for?
class PrivateImageField(PrivateFileField, models.ImageField): def __init__(self, *args, **kwargs): kwargs['max_file_size'] = kwargs.get( 'max_file_size', settings.DEFAULT_MAX_FILE_SIZE ) super().__init__(*args, **kwargs)
It works pretty well, but there are edge cases with regards to image transfer being required to get/set width/height attributes.
No branches or pull requests
This is a request-for-enhancement: It would be really nice to have a PrivateImageField that borrows functionality from the standard ImageField class.
The text was updated successfully, but these errors were encountered: