diff --git a/Dockerfile b/Dockerfile index 11e6f373aea36a7249d85518c4aa69d7e0c46544..f2312d27aea4c1efae4669ca9939b6b47b5b8d4b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -72,6 +72,9 @@ RUN \ # Make migrations RUN cd $CODEROOT && python3 manage.py migrate --noinput +RUN python3 manage.py loaddata blocnote/apps/budgetSimulator/fixtures/funds.json +RUN python3 manage.py loaddata blocnote/apps/budgetSimulator/fixtures/lender.json +RUN python3 manage.py loaddata blocnote/apps/budgetSimulator/fixtures/default_loan.json # Collect static files RUN cd $CODEROOT && python3 manage.py collectstatic --noinput diff --git a/blocnote/apps/budgetSimulator/fixtures/default_loan.json b/blocnote/apps/budgetSimulator/fixtures/default_loan.json index fe300d0b933e2ad38770f1b6f3e7420fb46dad36..482df2fc4cd03e80dc6deae9fdde055e68e26c86 100644 --- a/blocnote/apps/budgetSimulator/fixtures/default_loan.json +++ b/blocnote/apps/budgetSimulator/fixtures/default_loan.json @@ -64,5 +64,60 @@ "duration": "84", "max_loan_amount": "2000000.00" } + }, + { + "model": "financialInputs.defaultloan", + "pk": 7, + "fields": { + "lender": 1, + "fund": 3, + "interest_rate": "7.000", + "duration": "84", + "max_loan_amount": "5000000.00" + } + }, + { + "model": "financialInputs.defaultloan", + "pk": 8, + "fields": { + "lender": 2, + "fund": 3, + "interest_rate": "8.000", + "duration": "96", + "max_loan_amount": "7000000.00" + } + }, + { + "model": "financialInputs.defaultloan", + "pk": 9, + "fields": { + "lender": 3, + "fund": 3, + "interest_rate": "10.000", + "duration": "72", + "max_loan_amount": "10000000.00" + } + }, + { + "model": "financialInputs.defaultloan", + "pk": 10, + "fields": { + "lender": 4, + "fund": 3, + "interest_rate": "4.500", + "duration": "120", + "max_loan_amount": "8000000.00" + } + }, + { + "model": "financialInputs.defaultloan", + "pk": 11, + "fields": { + "lender": 5, + "fund": 3, + "interest_rate": "4.500", + "duration": "120", + "max_loan_amount": "2000000.00" + } } ] diff --git a/blocnote/apps/budgetSimulator/fixtures/funds.json b/blocnote/apps/budgetSimulator/fixtures/funds.json index e3d3dd2ae26df062bfa57e9cbdaa8a658fa415f9..2db104827e57d4481b8de2e26f2c84770cac489c 100644 --- a/blocnote/apps/budgetSimulator/fixtures/funds.json +++ b/blocnote/apps/budgetSimulator/fixtures/funds.json @@ -12,5 +12,11 @@ "fields": { "Name": "Bronx Healthy Buildings Fund" } + }, { + "model": "financialInputs.fund", + "pk": 3, + "fields": { + "Name": "No Fund" + } } ]