1👍
✅
previous_entry
is a computed property. You cannot set its value like this.
What you should to, is this:
previous_entry = LogEntry.objects.get(id=self.previous_entry.id)
self.previous_entry.end_time = self.start_time
self.previous_entry.save()
Source:stackexchange.com