CMS

Admin

Debug lists and forms for all models

Apps

class integreat_compass.cms.apps.CmsConfig(app_name, app_module)

Bases: AppConfig

This class represents the Django-configuration of the CMS.

See django.apps.AppConfig for more information.

Parameters:

name (str) – The name of the app

name = 'integreat_compass.cms'
ready()

Override this method in subclasses to run code when Django starts.

verbose_name = 'CMS'

Decorators

Django view decorators can be used to restrict the execution of a view function on certain conditions.

For more information, see View decorators.

integreat_compass.cms.decorators.permission_required(permission)

Decorator for views that checks whether a user has a particular permission enabled. If not, the PermissionDenied exception is raised.

Parameters:

permission (str) – The required permission

Returns:

The decorated function

Return type:

Callable