Python InheritancePOO is awesome. I have worked with django some time ago and recently I thougth about ViewSets and its pagination system. Let's imagine a web service that is going to return some paginated data like this: { "count": 5, "page": 1, "data": [...Apr 4, 2022 · 2 min readjhonsanz.hashnode.dev
Django .annotate()Let's imagine this database. Here we have some records about cryptocurrencies. Notice that we have two records of SLP token. pkownerorder_datecurrencyinvested_amount_usd 1111/2/2022BTC5000 2111/2/2022ETH700 3111/2/2022SLP50 4111/2/2022DOT5 ...Feb 11, 2021 · 2 min readjhonsanz.hashnode.dev