check if changeset is full

This commit is contained in:
Laura Klünder 2017-12-19 17:00:06 +01:00
parent 1bfe50b4e7
commit be9f0e6720
3 changed files with 60 additions and 4 deletions

View file

@ -666,6 +666,12 @@ class ChangeSet(models.Model):
for obj in self.changed_objects.get(LocationRedirect, {}).values()) - changed_locationslug_pks)
return count
def get_changed_objects_by_model(self, model):
if isinstance(model, str):
model = apps.get_model('mapdata', model)
self.fill_changes_cache()
return self.changed_objects.get(model, {})
@property
def count_display(self):
"""