Add revision history to invoices & payments

This commit is contained in:
Johnathan Graydon
2018-05-14 15:57:06 +01:00
committed by GitHub
parent e81af9e479
commit 42e1931e72

View File

@@ -530,6 +530,7 @@ class EventAuthorisation(models.Model, RevisionMixin):
return str("N%05d" % self.event.pk + ' (requested by ' + self.sent_by.initials + ')')
@reversion.register(follow=['payment_set'])
@python_2_unicode_compatible
class Invoice(models.Model):
event = models.OneToOneField('Event', on_delete=models.CASCADE)