Initial commit

This commit is contained in:
Senad Uka
2019-01-14 13:15:49 +01:00
commit a107668d4b
34 changed files with 8762 additions and 0 deletions

21
crib/dough/models.py Normal file
View File

@@ -0,0 +1,21 @@
from django.db import models
class Account(models.Model):
question_text = models.CharField(max_length=200)
created_date = models.DateTimeField('date created')
class AccountItem(models.Model):
account = models.ForeignKey(Account, on_delete=models.CASCADE,
related_name='items')
collected=models.DecimalField(max_digits=10, decimal_places=3)
paid=models.DecimalField(max_digits=10, decimal_places=3)
from_to= models.ForeignKey(Account, on_delete=models.CASCADE, blank=True,
related_name='connected_items')
description = models.CharField(max_length=100, blank=True)
when = models.DateTimeField('date and time created')