mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-13 01:54:10 +02:00
fix created_by_id access error on abid creation
This commit is contained in:
@@ -243,7 +243,7 @@ class ABIDModel(models.Model):
|
|||||||
self.pk = self.id
|
self.pk = self.id
|
||||||
self.created_at = self.created_at or self._init_timestamp # cut off precision to match precision of TS component
|
self.created_at = self.created_at or self._init_timestamp # cut off precision to match precision of TS component
|
||||||
self.modified_at = self.modified_at or self.created_at
|
self.modified_at = self.modified_at or self.created_at
|
||||||
self.created_by = self.created_by or get_or_create_system_user_pk()
|
self.created_by_id = (hasattr(self, 'created_by_id') and self.created_by_id) or get_or_create_system_user_pk()
|
||||||
|
|
||||||
# Compute fresh ABID values & hashes based on object's live properties
|
# Compute fresh ABID values & hashes based on object's live properties
|
||||||
abid_fresh_values = self.ABID_FRESH_VALUES
|
abid_fresh_values = self.ABID_FRESH_VALUES
|
||||||
|
Reference in New Issue
Block a user