lukaszb/django-guardian — pull request #61 by Tecuya (2012-02-03 01:30:52+00:00)
Title: Unit tests - test fixture - object order correction

tests.json defines users which reference group IDs before defining those group IDs.

On databases with referential integrity constraints, this causes an exception to be raised when the test runner attempts to install the fixture, and causes associated tests to fail since the fixture does not get installed.

The fix is simply to define the groups first, THEN define the users which reference those groups.

The attached commit makes that change.