Removed an unused variable in mia_core.models.

This commit is contained in:
依瑪貓 2022-12-05 19:36:06 +08:00
parent 3792524022
commit 607b5be9c0

View File

@ -69,7 +69,7 @@ class StampedModel(models.Model):
F"Missing current_user in {self.__class__.__name__}")
try:
self.created_by
except ObjectDoesNotExist as e:
except ObjectDoesNotExist:
self.created_by = self.current_user
self.updated_by = self.current_user
super().save(force_insert=force_insert, force_update=force_update,