We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2be77f commit 44920a4Copy full SHA for 44920a4
simple_history/tests/tests/test_models.py
@@ -311,7 +311,7 @@ def test_model_with_excluded_fields(self):
311
p = PollWithExcludeFields(question="what's up?", pub_date=today)
312
p.save()
313
history = PollWithExcludeFields.history.all()[0]
314
- all_fields_names = [f.name for f in history._meta.get_fields()]
+ all_fields_names = [f.name for f in history._meta.fields]
315
self.assertIn('question', all_fields_names)
316
self.assertNotIn('pub_date', all_fields_names)
317
0 commit comments