@route(method=('get', 'options'))
    def metadata(self, request):
        if request.method == 'OPTIONS':
            request.app.fire('on_preflight', request)
            return request.response

        backend = request.cache.auth_backend
        model = self.model

        if backend.has_permission(request, model.name, 'read'):
            meta = model.meta(request)
            return Json(meta).http_response(request)
        raise PermissionDenied
Model metadata
dataset/ETHPy150Open quantmind/lux/lux/extensions/auth/views.py/RegistrationCRUD.metadata