summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYingtong Li <runassudo@yingtongli.me>2020-02-09 22:17:02 +1100
committerYingtong Li <runassudo@yingtongli.me>2020-02-09 22:17:02 +1100
commit16f859cb6e2b513a334193f92b3a9689f5285596 (patch)
tree8cffd0e5d0556b9d26a0abebc0ee42673b08e814
parent83ef0c51546906b1aa9c899c78d8f64a278aba66 (diff)
Don't reset claim state when editing
-rw-r--r--sstreasury/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sstreasury/views.py b/sstreasury/views.py
index ab82b6d..f4daedd 100644
--- a/sstreasury/views.py
+++ b/sstreasury/views.py
@@ -492,7 +492,9 @@ def claim_edit(request, claim):
return redirect(reverse('claim_list'))
with transaction.atomic():
+ state = claim.state
claim = claim_from_form(claim, request.POST, request.FILES)
+ claim.state = state
claim_history = models.ClaimHistory()
claim_history.claim = claim
Contact (issues, pull requests, etc.) at git@yingtongli.me. Generated by cgit.