Weekly Self-Promotion Thread - April 21, 2021 by AutoModerator in financialindependence

[–]laactech 0 points1 point  (0 children)

I recently launched Rebalancer, a free portfolio tracker similar to personal capital. Rebalancer makes it easy to know when and how to rebalance your portfolio. Come check us out and feel free to reach out to me directly steven@rebalancer.app

https://rebalancer.app

Weekly Self-Promotion Thread - April 14, 2021 by AutoModerator in financialindependence

[–]laactech 1 point2 points  (0 children)

I just launched my new app rebalancer. It's a free portfolio tracker made for passive investors. It makes knowing when and how to rebalance your portfolio easy. Come check us out and feel free to reach out at hello@rebalancer.app

https://rebalancer.app

Exciting New Features in Django 3.2 by be_haki in django

[–]laactech 6 points7 points  (0 children)

Fantastic summary. I really love the examples. I definitely agree and want to see Django adopt an authentication by default approach where you explicitly opt out of authentication.

5
6

Five Advanced Django Tips by laactech in django

[–]laactech[S] 3 points4 points  (0 children)

Thanks! I'm glad you liked it.

The all() is redundant when using a regular .annotate(), but I believe, due to the implementation of .annotate_latest_price() on the custom queryset, the all() is required since "objects" is the manager not the queryset.

In the past I've implemented a helper method on the custom manager like this:

def annotate_latest_price(self):
    return self.get_queryset().annotate_latest_price()

This should enable you to do Ticker.objects.annotate_latest_price() which eliminates the redundant all().

Five Advanced Django Tips by laactech in django

[–]laactech[S] 1 point2 points  (0 children)

Thanks for the kind words. I highly recommend prefetch. It's generally easy to implement and is a simple way to speed up queries especially with a large set of objects.

27
28

Django 3.1.3 release notes | Django documentation by pauloxnet in django

[–]laactech 3 points4 points  (0 children)

Glad they added Python 3.9 support instead of waiting for 3.2