Skip to content

Commit

Permalink
Backport to Django-4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed Dec 7, 2023
1 parent 283153d commit b3aa88c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion formset/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def validate_unique(self):
for valid_holders in self.valid_holders:
for name, holder in valid_holders.items():
if isinstance(holder, BaseModelForm):
exclude = holder._get_validation_exclusions().difference(unique_fields)
exclude = set(holder._get_validation_exclusions()).difference(unique_fields)
unique_checks, date_checks = holder.instance._get_unique_checks(
exclude=exclude,
include_meta_constraints=True,
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.1',
'Framework :: Django :: 4.2',
]
Expand All @@ -32,7 +33,7 @@
url='https://github.com/jrief/django-formset',
packages=find_packages(include=['formset', 'formset.*']),
install_requires=[
'django>=4.1',
'django>=4.0',
],
extra_requires={
'thumbnail': ['Pillow'],
Expand Down

0 comments on commit b3aa88c

Please sign in to comment.