Fix exclude model test

This commit is contained in:
Jan-Jelle Kester 2015-05-14 23:30:05 +02:00
parent e97c601038
commit 0bf829f296
2 changed files with 2 additions and 2 deletions

View file

@ -86,4 +86,4 @@ auditlog.register(SimpleModel)
auditlog.register(AltPrimaryKeyModel)
auditlog.register(ProxyModel)
auditlog.register(SimpleIncludeModel, include_fields=['label', ])
auditlog.register(SimpleExcludeModel, exclude_fields=['label', ])
auditlog.register(SimpleExcludeModel, exclude_fields=['text', ])

View file

@ -165,7 +165,7 @@ class SimpeExcludeModelTest(TestCase):
"""Log only changes that are not in exclude_fields"""
def test_register_exclude_fields(self):
sem = SimpleIncludeModel(label='Exclude model', text='Looong text')
sem = SimpleExcludeModel(label='Exclude model', text='Looong text')
sem.save()
self.assertTrue(sem.history.count() == 1, msg="There is one log entry")