I have a PSQL database with portfolios and their values each day for a few years. I'm using Django to develop a web app behind this. I used this link: https://docs.djangoproject.com/en/1.10/howto/legacy-databases/
to generate the models for Django. I did not explicitly define a primary key in my database or in the models.py file. Is it necessary to define a primary key in order to retrieve data from the DB?
If so, is there a way to make multiple fields a primary key? In this case it has to be the portfolio ID and the date, since there are multiple portfolios and dates.
Thanks for any help!