mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed a couple form/formset deprecation warnings in tests.
This commit is contained in:
@@ -399,7 +399,7 @@ class ModelFormsetTest(TestCase):
|
||||
super(BaseAuthorFormSet, self).__init__(*args, **kwargs)
|
||||
self.queryset = Author.objects.filter(name__startswith='Charles')
|
||||
|
||||
AuthorFormSet = modelformset_factory(Author, formset=BaseAuthorFormSet)
|
||||
AuthorFormSet = modelformset_factory(Author, fields='__all__', formset=BaseAuthorFormSet)
|
||||
formset = AuthorFormSet()
|
||||
self.assertEqual(len(formset.get_queryset()), 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user