Skip to content

Commit 129f268

Browse files
committed
Django 110 remove the method get_all_field_names then I change the code that use this method.
1 parent f13ed41 commit 129f268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simple_history/tests/tests/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def test_model_with_excluded_fields(self):
311311
p = PollWithExcludeFields(question="what's up?", pub_date=today)
312312
p.save()
313313
history = PollWithExcludeFields.history.all()[0]
314-
all_fields_names = history._meta.get_all_field_names()
314+
all_fields_names = [f.name for f in history._meta.get_fields()]
315315
self.assertIn('question', all_fields_names)
316316
self.assertNotIn('pub_date', all_fields_names)
317317

0 commit comments

Comments
 (0)