dont add changes to finished changesets
This commit is contained in:
parent
7f4c917872
commit
b4c640254f
1 changed files with 2 additions and 0 deletions
|
@ -148,4 +148,6 @@ class Change(models.Model):
|
|||
self.full_clean()
|
||||
if self.pk is not None:
|
||||
raise ValidationError('change objects can not be edited.')
|
||||
if self.changeset.proposed is not None or self.changeset.applied is not None:
|
||||
raise ValidationError('can not add change object to uneditable changeset.')
|
||||
super().save(*args, **kwargs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue