fallback count

This commit is contained in:
Laura Klünder 2017-06-20 18:07:08 +02:00
parent 2d4cd68381
commit 959e0adfa0

View file

@ -225,6 +225,9 @@ class ChangeSet(models.Model):
@property
def changes_count(self):
if self.changes_qs is None:
return self.relevant_changes().exclude(model_name='LocationRedirect', action='update').count()
result = 0
for model, objects in self.created_objects.items():