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 21
21
django-version : ' 4.1'
22
22
- python-version : ' 3.7'
23
23
django-version : ' main'
24
- - python-version : ' 3.10'
25
- django-version : ' 3.1'
26
24
27
25
services :
28
26
Original file line number Diff line number Diff line change @@ -1324,14 +1324,8 @@ def test_migrations_include_order(self):
1324
1324
1325
1325
model_state = state .ModelState .from_model (SeriesWork .history .model )
1326
1326
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 ():
1335
1329
if name == "_order" :
1336
1330
found = True
1337
1331
self .assertEqual (type (field ), models .IntegerField )
You can’t perform that action at this time.
0 commit comments