Jump to >

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