Jump to >

This documentation covers Djblets 2.0. You can see the latest Djblets documentation or all other 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