dont count LocationRedirect update changes as they are invisible
This commit is contained in:
parent
279d9bab52
commit
613c9ee843
1 changed files with 3 additions and 1 deletions
|
@ -204,7 +204,9 @@ class ChangeSet(models.Model):
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def undeleted_changes_count(self):
|
def undeleted_changes_count(self):
|
||||||
return len([True for change in self.changes.all() if change.deletes_change_id is None])
|
return len([True for change in self.changes.all() if ((change.model_name != 'LocationRedirect' or
|
||||||
|
change.action != 'update') and
|
||||||
|
change.deletes_change_id is None)])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def title(self):
|
def title(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue