-
Notifications
You must be signed in to change notification settings - Fork 587
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
django from_form does not work with filefields #4093
Comments
Hmm, unfortunately none of Hypothesis' regular contributors are Django users, so it's pretty plausible that we've missed an upstream change or something like that. I'd be happy to accept a patch, but would appreciate more-detailed-than-usual notes pointing to Django docs etc to explain what's going on 🙂 |
More than happy to help! Hypo has been of great use to us in testing our django codebase.
The problem arises when we have
The expected code would be to have the hypo code in the referred section as:
thus passing the strategies correctly to the form builder. Does that make more sense? I'm happy to answer any other questions. |
Sounds great! |
The from_form function does not bind files correctly.
From the source available I think it should be supplying file fields separately. Currently it is running:
I think it should have been something like:
cc @sethuvishal
Is this expected? If not I think we're happy to submit a patch for this.
The text was updated successfully, but these errors were encountered: