diff options
author | lxf <sng@luxagraf.net> | 2022-03-16 10:46:50 -0400 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2022-03-16 10:46:50 -0400 |
commit | 9043217994b9b447ae73d16247e95e6f0a81b854 (patch) | |
tree | 680f7398048d279220261d41ea36574e177c14c7 /app/trading | |
parent | 3602afb7d17d21ab9437ef3ac6443617f100cf08 (diff) |
trad: fixed a bug in the main list view
Diffstat (limited to 'app/trading')
-rw-r--r-- | app/trading/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/trading/views.py b/app/trading/views.py index 82904ca..95f531d 100644 --- a/app/trading/views.py +++ b/app/trading/views.py @@ -31,7 +31,7 @@ class LuxTradeListView(PaginatedListView): context['options_monthly_pl'] = LuxOptionPurchase.stats.get_month_pl() context['options_year_pl'] = LuxOptionPurchase.stats.get_year_pl() context['month'] = timezone.now().strftime('%h') - context['luxoptions_purchases'] = LuxOptionPurchase.objects.filter(close_date__range=(start_date, end_date)) + context['luxoptions_purchases'] = LuxOptionPurchase.objects.filter(open_date__range=(start_date, end_date)) return context def get_queryset(self): |