events Package¶
models Module¶
- class events.models.BaseEvent(*args, **kwargs)[source]¶
An abstract class for the commonalities of the Event and HistoricalEvent models.
- class events.models.Event(*args, **kwargs)[source]¶
Hold information about Events.
- class events.models.HistoricalEvent(*args, **kwargs)[source]¶
Historical Events record Events that occurred in previous Fiscal Years.
When a Fiscal Year is closed, all Transactions from that Fiscal Year are purged. Historical Events preserve the state of Events before the purging. They do not save the Transaction data but rather the overall data such as the total number of debits.
Instances of this model are automatically created by the add_fiscal_year() view.
- debit_total¶
The total number of Debits related to the Event. This value should be a negative number.
- net_change¶
The Net Change of all Transactions related to the Event.