- Isin - Isin is validated on the model
- Maturity date - Maturity date is validated on the model as well
- Bond ownership - Can be changed, but only in admin. That's intentional, otherwise it can be moved to model's validation from serializer's in order to validate on model's (db) level.
In order to set up the virtual environment (for local and tests):
uv syncThen either run every command using uv run or use:
source .venv/bin/activatepython manage.py runserverdocker-compose builddocker-compose up
or
docker-compose up -d # detach modeServer is then ready at http://localhost:8000/
Database example is provided in the repository. 2 users are created with usernames admin and staff. Passwords are the same as the usernames. Db also has 3 pre-created bonds.
API can be also run through DRF web browser UI at:
http://localhost:8000/api
API Documentation can be accessed on:
http://localhost:8000/swagger
To run the tests:
python manage.py testLocalization has been added as an extra feature with support currently for Czech and English languages.