Skip to content

v0.100.2

Compare
Choose a tag to compare
@renefs renefs released this 07 Apr 10:09
· 674 commits to main since this release
3fcae40

This version has a lot of changes that simplify the application usage and maintenance. To know all the changes, please check #46 .

You will need to add the hostname of your application to the config.py file:

CORS_ALLOWED_ORIGINS = [
    "http://your-application.your-host.com",
    "http://127.0.0.1:3000",
]

One manual task to do when migrating to this version is to update the totals for the transactions using the command line:

The database has changed, so it needs to be migrated:

python manage.py migrate

If you have problems with the migrations, you might have to remove the current migrations and make the migrations again. Then migrate as usual:

find . -path '*/migrations/*.py' -not -name '__init__.py' -delete
python manage.py makemigrations
python manage.py migrate

And calculate the totals for the transactions since the app doesn't calculate totals based on the number of shares and the price per share, since IB provides directly the total:

python manage.py set_dividends_total
python manage.py set_shares_total
python manage.py set_rights_total

Remove old tables from the database

  • All tables starting with otp_ can be removed.
  • Table two_factor... can be removed.