diff options
-rw-r--r-- | ishtar_common/models.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 1031df71e..a9e778dd6 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -103,7 +103,11 @@ class ValueGetter(object): class HistoricalRecords(BaseHistoricalRecords): def create_historical_record(self, instance, type): - history_modifier = getattr(instance, 'history_modifier', None) + try: + history_modifier = getattr(instance, 'history_modifier', None) + except User.DoesNotExist: + # on batch removing of users, user could have disapeared + return manager = getattr(instance, self.manager_name) attrs = {} for field in instance._meta.fields: |