Skip to content

Commit db2b1cc

Browse files
committed
fix: run calc_clr_round() when the Grant is first approved (#10866)
* fix: run calc_clr_round() when the Grant is first activated * fix: run grant through a full update_grant_metadata * fix: makes this work with just calc_clr_round()
1 parent eb99db4 commit db2b1cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/grants/admin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ def response_change(self, request, obj):
219219
obj.is_clr_eligible = True
220220
obj.hidden = False
221221
obj.save()
222+
obj.calc_clr_round()
223+
obj.save()
222224
record_grant_activity_helper('new_grant', obj, obj.admin_profile)
223225
new_grant_approved(obj, obj.admin_profile)
224226
self.message_user(request, "Grant has been successfully approved")

0 commit comments

Comments
 (0)