- Move all generic API classes definitions to the rest_api.generics module. - Update API status code on insufficient access for the apps: indexes, parsing, documents, metadata, ocr, permission, user management. - Update API tests. Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
16 lines
453 B
Python
16 lines
453 B
Python
from __future__ import unicode_literals
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from mayan.apps.smart_settings.classes import Namespace
|
|
|
|
namespace = Namespace(label=_('Search'), name='search')
|
|
|
|
setting_disable_simple_search = namespace.add_setting(
|
|
global_name='SEARCH_DISABLE_SIMPLE_SEARCH',
|
|
default=False, help_text=_(
|
|
'Disables the single term bar search leaving only the advanced '
|
|
'search button.'
|
|
)
|
|
)
|