unassign change set if it is rejected

This commit is contained in:
Laura Klünder 2018-12-24 13:35:20 +01:00
parent 318cf80da4
commit aa0ee0f738

View file

@ -642,6 +642,7 @@ class ChangeSet(models.Model):
def reject(self, user, comment: str, final: bool):
state = 'finallyrejected' if final else 'rejected'
self.assigned_to = None
update = self.updates.create(user=user, state=state, comment=comment)
self.state = state
self.last_state_update = update