def METHOD_NAME(self):
    """
    Check and return initial features id locked
    """
    # first remove features lock with sessions expired
    sessions = Session.objects.filter(expire_date__lte=timezone.now())
    session_ids = [s.session_key for s in sessions]
    features_to_unlock = LockModel.objects.filter(
        sessionid__in=session_ids)
    LayerLock.unLockExpiredFeatures(features_to_unlock)
    filters = {
        'layer_name': self.layerName,
        'app_name': self.appName,
        'layer_datasource': self.layerDatasource
    }
    featuresLocked = LockModel.objects.filter(**filters)
    for f in featuresLocked:
        self.initialFeatureLockedIds.append(f.feature_id)
        if getattr(self, 'user') and \
                (f.user == self.user or (self.user.is_anonymous and getattr(settings, 'EDITING_ANONYMOUS', False))) \
                and getattr(self, 'sessionid') \
                and f.sessionid == self.sessionid:
            self.getInitialUserFeatureLocked.append(f)
            self.getInitialUserFeatureLockedByFeatureId[f.feature_id] = f.feature_lock_id