diff --git a/core/__pycache__/settings.cpython-37.pyc b/core/__pycache__/settings.cpython-37.pyc index 9d93892..6ac6efe 100644 Binary files a/core/__pycache__/settings.cpython-37.pyc and b/core/__pycache__/settings.cpython-37.pyc differ diff --git a/core/settings.py b/core/settings.py index 228aff9..98f82dd 100644 --- a/core/settings.py +++ b/core/settings.py @@ -136,7 +136,7 @@ USE_I18N = True USE_L10N = True -USE_TZ = True +USE_TZ = False # Static files (CSS, JavaScript, Images) diff --git a/qrtr_account/dummy_data/fill_transactions.py b/qrtr_account/dummy_data/fill_transactions.py index f36ab74..4111959 100644 --- a/qrtr_account/dummy_data/fill_transactions.py +++ b/qrtr_account/dummy_data/fill_transactions.py @@ -666,8 +666,11 @@ transactions = [ ] +print(len(transactions)) + for transaction in transactions: bank = Bank.objects.filter(acc_id=transaction.get("account_id",[None]))[0] + print(bank) if bank: fields = { "datetime":datetime.strptime(transaction.get("date"),"%Y-%m-%d"), diff --git a/qrtr_account/models.py b/qrtr_account/models.py index 11ad598..6e4a35a 100644 --- a/qrtr_account/models.py +++ b/qrtr_account/models.py @@ -71,6 +71,7 @@ class Slice(models.Model): limit_choices_to=avail_parents, on_delete=models.CASCADE) parent_id = models.PositiveIntegerField() + is_unsliced = models.BooleanField(default=False) slice_of = GenericForeignKey('parent_type', 'parent_id') @property @@ -116,6 +117,7 @@ class Transaction(models.Model): Bank = models.ForeignKey(Bank, on_delete=models.CASCADE, related_name='transactions') details = jsonfield.JSONField() + Slice = models.ForeignKey(Slice, on_delete=models.SET_NULL, null=True) @property def qid(self):