etianen/django-reversion — Issue #110: testCreateInitialRevisions fails for models with initial_data
Author: SystemParadox
Created: 2011-12-01 17:00:34+00:00
State: open

testCreateInitialRevisions fails when an app that provides initial_data is registered with reversion

reversion/tests.py, line 509, in testCreateInitialRevisions
self.assertEqual(Revision.objects.count(), 4)
AssertionError: 9 != 4

In this example the initial_data file contains 4 records for the registered model, with 1 record linked by foreign key. This plus the expected 4 equals 9.

Django==1.3.1
django-reversion==1.5.1

Any advice for this issue (including possibly how I might change my use of initial_data) would be greatly appreciated.

Thanks in advance, and thanks to the developers for such a useful app!
Simon