Skip to content

Commit

Permalink
Add step to rewards.rewardpointredemptionevent in testdata (#2382)
Browse files Browse the repository at this point in the history
in #2264 the step field was added to rewards.rewardpointredemptionevent but not reflected in the test_data.json.

It is now added :)
  • Loading branch information
jooooosef authored Feb 3, 2025
1 parent 05aa6bb commit 9bb475a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion evap/development/fixtures/test_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -153476,7 +153476,8 @@
"fields": {
"name": "Big party",
"date": "2099-12-31",
"redeem_end_date": "2099-12-30"
"redeem_end_date": "2099-12-30",
"step": 3
}
},
{
Expand Down
1 change: 1 addition & 0 deletions evap/rewards/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class RewardPointRedemptionEvent(models.Model):
name = models.CharField(max_length=1024, verbose_name=_("event name"))
date = models.DateField(verbose_name=_("event date"))
redeem_end_date = models.DateField(verbose_name=_("redemption end date"))
# Note that we allow this value to change throughout the lifetime of the event.
step = models.PositiveSmallIntegerField(
verbose_name=_("redemption step"), help_text=_("Only multiples of this step can be redeemed."), default=1
)
Expand Down

0 comments on commit 9bb475a

Please sign in to comment.