unassign change set if it is rejected
This commit is contained in:
parent
318cf80da4
commit
aa0ee0f738
1 changed files with 1 additions and 0 deletions
|
@ -642,6 +642,7 @@ class ChangeSet(models.Model):
|
||||||
|
|
||||||
def reject(self, user, comment: str, final: bool):
|
def reject(self, user, comment: str, final: bool):
|
||||||
state = 'finallyrejected' if final else 'rejected'
|
state = 'finallyrejected' if final else 'rejected'
|
||||||
|
self.assigned_to = None
|
||||||
update = self.updates.create(user=user, state=state, comment=comment)
|
update = self.updates.create(user=user, state=state, comment=comment)
|
||||||
self.state = state
|
self.state = state
|
||||||
self.last_state_update = update
|
self.last_state_update = update
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue