Don't reset claim state when editing

This commit is contained in:
Yingtong Li 2020-02-09 22:17:02 +11:00
parent 83ef0c5154
commit 16f859cb6e
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -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