def is_locked_by(self, user):
        return user == self.locked_by
Returns True or False. Can be used to test whether this object is locked by
dataset/ETHPy150Open debrouwere/django-locking/locking/models.py/LockableModel.is_locked_by