mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-23 08:22:15 +00:00
Restrict versioning to one level of depth for speed
Also fixed the template for nested changes
This commit is contained in:
@@ -382,7 +382,7 @@ class EventAuthorisationTestCase(TestCase):
|
||||
order=1)
|
||||
|
||||
def test_event_property(self):
|
||||
auth1 = models.EventAuthorisation.objects.create(event=self.event, email="authroisation@model.test.case",
|
||||
auth1 = models.EventAuthorisation.objects.create(event=self.event, email="authorisation@model.test.case",
|
||||
name="Test Auth 1", amount=self.event.total - 1,
|
||||
sent_by=self.profile)
|
||||
self.assertFalse(self.event.authorised)
|
||||
@@ -392,7 +392,7 @@ class EventAuthorisationTestCase(TestCase):
|
||||
|
||||
def test_last_edited(self):
|
||||
with reversion.create_revision():
|
||||
auth = models.EventAuthorisation.objects.create(event=self.event, email="authroisation@model.test.case",
|
||||
auth = models.EventAuthorisation.objects.create(event=self.event, email="authorisation@model.test.case",
|
||||
name="Test Auth", amount=self.event.total,
|
||||
sent_by=self.profile)
|
||||
self.assertIsNotNone(auth.last_edited_at)
|
||||
|
||||
Reference in New Issue
Block a user