Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed the generic_inline_admin tests for python3.

  • Loading branch information...
commit befa1dd7a5f88bcf994598c36438338109478409 1 parent 0c257f5
@alex alex authored Alex Gaynor committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/regressiontests/generic_inline_admin/tests.py
View
6 tests/regressiontests/generic_inline_admin/tests.py
@@ -276,7 +276,7 @@ class EpisodeAdmin(admin.ModelAdmin):
ma = EpisodeAdmin(Episode, self.site)
self.assertEqual(
- list(ma.get_formsets(request))[0]().forms[0].fields.keys(),
+ list(list(ma.get_formsets(request))[0]().forms[0].fields),
['keywords', 'id', 'DELETE'])
def test_custom_form_meta_exclude(self):
@@ -306,7 +306,7 @@ class EpisodeAdmin(admin.ModelAdmin):
ma = EpisodeAdmin(Episode, self.site)
self.assertEqual(
- list(ma.get_formsets(request))[0]().forms[0].fields.keys(),
+ list(list(ma.get_formsets(request))[0]().forms[0].fields),
['url', 'keywords', 'id', 'DELETE'])
# Then, only with `ModelForm` -----------------
@@ -322,5 +322,5 @@ class EpisodeAdmin(admin.ModelAdmin):
ma = EpisodeAdmin(Episode, self.site)
self.assertEqual(
- list(ma.get_formsets(request))[0]().forms[0].fields.keys(),
+ list(list(ma.get_formsets(request))[0]().forms[0].fields),
['description', 'keywords', 'id', 'DELETE'])
Please sign in to comment.
Something went wrong with that request. Please try again.