diff options
author | luxagraf <sng@luxagraf.net> | 2023-06-29 13:35:26 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2023-06-29 13:35:26 -0500 |
commit | 67fbb0244bd401b360d5d921be6005a44105130e (patch) | |
tree | d7cb3cf680cd08afbd2af08816ef3960d0b96e66 /app/deals/models.py | |
parent | 2fa18bc963220aa099a6ac8d95be43aad92da034 (diff) |
deals: changed discount persent to sort on number
Diffstat (limited to 'app/deals/models.py')
-rw-r--r-- | app/deals/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/deals/models.py b/app/deals/models.py index b7d77d6..8afdb11 100644 --- a/app/deals/models.py +++ b/app/deals/models.py @@ -14,8 +14,8 @@ class Deal(models.Model): promo_type = models.CharField(max_length=200, blank=True) deal_price = models.CharField(max_length=12, null=True) original_price = models.CharField(max_length=12, null=True) - discount_percent = models.CharField(max_length=12, null=True) - discount_percent_num = models.FloatField(null=True) + discount_percent_str = models.CharField(max_length=12, null=True) + discount_percent = models.FloatField(null=True) url = models.CharField(max_length=200) class Meta: |