Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Jan 27, 2025
1 parent bc555cf commit d2ee852
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hypothesis-python/RELEASE.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
RELEASE_TYPE: patch
RELEASE_TYPE: minor

This patch fixes file field handling for django forms when using
This release fixes file field handling for django forms when using
:func:`~hypothesis.extra.django.from_form` (:issue:`4093`).

Thanks to Arjoonn Sharma for this fix!
1 change: 1 addition & 0 deletions hypothesis-python/tests/django/toystore/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
Company,
CouldBeCharming,
Customer,
FileFields,
ManyNumerics,
ManyTimes,
OddFields,
Expand Down
2 changes: 1 addition & 1 deletion hypothesis-python/tests/django/toystore/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class CustomishDefault(models.Model):


class FileFields(models.Model):
file1 = FileField()
file1 = django.forms.FileField()


class MandatoryComputed(models.Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
CustomerForm,
DynamicForm,
EmailFieldForm,
FileFieldsForm,
InternetProtocolForm,
ManyMultiValueForm,
ManyNumericsForm,
Expand All @@ -41,7 +42,6 @@
UsernameForm,
UUIDFieldForm,
WithValidatorsForm,
FileFieldsForm,
)
from tests.django.toystore.models import Company

Expand Down

0 comments on commit d2ee852

Please sign in to comment.