mirror of
https://github.com/ae-utbm/sith.git
synced 2025-09-16 13:03:51 +00:00
Compare commits
1 Commits
dependabot
...
fix_archiv
Author | SHA1 | Date | |
---|---|---|---|
|
c7fe8961ab |
@@ -690,8 +690,10 @@ class Counter(models.Model):
|
||||
Prices will be annotated
|
||||
"""
|
||||
|
||||
products = self.products.select_related("product_type").prefetch_related(
|
||||
"buying_groups"
|
||||
products = (
|
||||
self.products.filter(archived=False)
|
||||
.select_related("product_type")
|
||||
.prefetch_related("buying_groups")
|
||||
)
|
||||
|
||||
# Only include age appropriate products
|
||||
|
@@ -74,7 +74,7 @@ dev = [
|
||||
tests = [
|
||||
"freezegun<2.0.0,>=1.5.1",
|
||||
"pytest<9.0.0,>=8.3.5",
|
||||
"pytest-cov>=6.0.0,<8.0.0",
|
||||
"pytest-cov<7.0.0,>=6.0.0",
|
||||
"pytest-django<5.0.0,>=4.10.0",
|
||||
"model-bakery<2.0.0,>=1.20.4",
|
||||
"beautifulsoup4>=4.13.3,<5",
|
||||
|
Reference in New Issue
Block a user