Jump to >

This documentation covers the in-development release of Djblets. You can see the latest stable docs or all previous versions.

djblets.features.decorators

Feature-related decorators.

feature_required(feature, not_enabled_view=None)[source]

Require a feature to execute a view.

If the feature is not enabled, the not_enabled_view will be called instead.

Parameters:
Returns:

The decorator.

Return type:

callable