mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
Fix exclude model test
This commit is contained in:
parent
e97c601038
commit
0bf829f296
2 changed files with 2 additions and 2 deletions
|
|
@ -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', ])
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue