fix AttributeError

This commit is contained in:
Laura Klünder 2017-06-20 12:21:39 +02:00
parent 6534e25a64
commit 1d034a0741

View file

@ -218,8 +218,7 @@ class ChangeSet(models.Model):
if self.pk is None:
return 0
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)])
change.action != 'update'))])
@property
def title(self):