Skip to content

Commit

Permalink
Change Product ordering - from lowest price
Browse files Browse the repository at this point in the history
  • Loading branch information
DEENUU1 committed Dec 28, 2023
1 parent 6e568cb commit 33ebae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion payment/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __str__(self):
return f"{self.name} {self.value}"

class Meta:
ordering = ["-created_at"]
ordering = ["price_euro"]
verbose_name = "Product"
verbose_name_plural = "Products"

Expand Down

0 comments on commit 33ebae9

Please sign in to comment.