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: if self.pk is None:
return 0 return 0
return len([True for change in self.changes.all() if ((change.model_name != 'LocationRedirect' or return len([True for change in self.changes.all() if ((change.model_name != 'LocationRedirect' or
change.action != 'update') and change.action != 'update'))])
change.deletes_change_id is None)])
@property @property
def title(self): def title(self):