fallback count
This commit is contained in:
parent
2d4cd68381
commit
959e0adfa0
1 changed files with 3 additions and 0 deletions
|
@ -225,6 +225,9 @@ class ChangeSet(models.Model):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def changes_count(self):
|
def changes_count(self):
|
||||||
|
if self.changes_qs is None:
|
||||||
|
return self.relevant_changes().exclude(model_name='LocationRedirect', action='update').count()
|
||||||
|
|
||||||
result = 0
|
result = 0
|
||||||
|
|
||||||
for model, objects in self.created_objects.items():
|
for model, objects in self.created_objects.items():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue