|
|
@ -6,16 +6,17 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Licensed under GNU Affero General Public License v3 or later
|
|
|
|
# Licensed under GNU Affero General Public License v3 or later
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from decimal import Decimal
|
|
|
|
|
|
|
|
|
|
|
|
from django.db import models
|
|
|
|
from django.core.validators import MinValueValidator
|
|
|
|
from django.core.validators import *
|
|
|
|
|
|
|
|
from django.contrib.auth.models import User
|
|
|
|
from django.contrib.auth.models import User
|
|
|
|
|
|
|
|
from django.db import models
|
|
|
|
from django.db.models.deletion import SET_NULL
|
|
|
|
from django.db.models.deletion import SET_NULL
|
|
|
|
from django.db.models.signals import pre_delete
|
|
|
|
from django.db.models.signals import pre_delete
|
|
|
|
from decimal import Decimal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from validator import validate_notZero
|
|
|
|
from validator import validate_notZero
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TransactionType(models.Model):
|
|
|
|
class TransactionType(models.Model):
|
|
|
|
""" Type for a :class:`Transaction`. States how the money has
|
|
|
|
""" Type for a :class:`Transaction`. States how the money has
|
|
|
|
been added to the account and if somebody needs to check
|
|
|
|
been added to the account and if somebody needs to check
|
|
|
|