susioma/ledger/models.py
2019-10-26 17:39:14 +02:00

12 lines
No EOL
453 B
Python

from django.db import models
# Create your models here.
class Payment(models.Model):
description = models.CharField("Payment description", max_length=128)
amount = models.DecimalField("Payment amount", max_digits=15, decimal_places=2)
date = models.DateTimeField("Date of payment", auto_now_add=True)
repayment = models.DateTimeField("Date of repayment", default=None, null=True)
def __str__(self):
return self.description