fix changed_objects_count
This commit is contained in:
parent
51f589835b
commit
4e3da477e5
1 changed files with 2 additions and 3 deletions
|
@ -261,9 +261,8 @@ class ChangeSet(models.Model):
|
||||||
changed_locationslug_pks.update(objects.keys())
|
changed_locationslug_pks.update(objects.keys())
|
||||||
count += len(objects)
|
count += len(objects)
|
||||||
|
|
||||||
changed_locationslug_pks ^= set(obj.updated_fields['target']
|
count += len(set(obj.updated_fields['target']
|
||||||
for obj in self.changed_objects.get(LocationRedirect, {}).values())
|
for obj in self.changed_objects.get(LocationRedirect, {}).values()) - changed_locationslug_pks)
|
||||||
count += len(changed_locationslug_pks)
|
|
||||||
return count
|
return count
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue