dont count LocationRedirect update changes as they are invisible

This commit is contained in:
Laura Klünder 2017-06-18 18:50:16 +02:00
parent 279d9bab52
commit 613c9ee843

View file

@ -204,7 +204,9 @@ class ChangeSet(models.Model):
@cached_property
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
def title(self):