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

Remove explicit max_length limit in S3UploadURLField #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TheSuperiorStanislav
Copy link
Member

It causes issues with auto spec generation and validation.
Since it can return full urls with auth query, which can easily pass
a limit specified in model field(which is by default 100), it causes confusion for openapi specs validators.

It causes issues with auto spec generation and validation.
Since it can return full urls with auth query, which can easily pass
a limit specified in model field(which is by default 100), it causes
confusion for openapi specs validators.
@TheSuperiorStanislav TheSuperiorStanislav marked this pull request as ready for review November 14, 2024 11:33
@TheSuperiorStanislav TheSuperiorStanislav requested a review from a team as a code owner November 14, 2024 11:33
super().__init__(**kwargs)
if max_length is not None:
Copy link
Contributor

Choose a reason for hiding this comment

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

Dont we need test for it or it already has?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's copied from original implementation(drf's char field). I'm planning to setup coverage reporting similar to https://github.com/saritasa-nest/django-import-export-extensions

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