File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
simple_history/tests/tests Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 2121 django-version : ' 4.1'
2222 - python-version : ' 3.7'
2323 django-version : ' main'
24- - python-version : ' 3.10'
25- django-version : ' 3.1'
2624
2725 services :
2826
Original file line number Diff line number Diff line change @@ -1324,14 +1324,8 @@ def test_migrations_include_order(self):
13241324
13251325 model_state = state .ModelState .from_model (SeriesWork .history .model )
13261326 found = False
1327- # `fields` is a dict in Django 3.1
1328- fields = None
1329- if isinstance (model_state .fields , dict ):
1330- fields = model_state .fields .items ()
1331- else :
1332- fields = model_state .fields
1333-
1334- for name , field in fields :
1327+
1328+ for name , field in model_state .fields .items ():
13351329 if name == "_order" :
13361330 found = True
13371331 self .assertEqual (type (field ), models .IntegerField )
You can’t perform that action at this time.
0 commit comments