diff --git a/docs/index.rst b/docs/index.rst index 42d4cf97f6..2b2f0a00cf 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -63,7 +63,7 @@ Release notes Customization and fine tunning ============================== - :doc:`Settings ` | :doc:`Customization ` + :doc:`Settings ` For developers ============== diff --git a/docs/topics/customization.rst b/docs/topics/customization.rst deleted file mode 100644 index d542a81c7b..0000000000 --- a/docs/topics/customization.rst +++ /dev/null @@ -1,13 +0,0 @@ -============= -Customization -============= - ------------ -Home screen ------------ -Sometimes users just want to go directly to work and not just be greeted with -a home screen. For these kind of situations **Mayan EDMS** has the -:setting:`MAIN_DISABLE_HOME_VIEW` configuration option, which will cause -users to land on their ``recent document list`` as soon as they log in. - -.. _`Andrea Franz's excellent web app template`: https://github.com/pilu/web-app-theme diff --git a/docs/topics/index.rst b/docs/topics/index.rst index a037c77892..6188681fb9 100644 --- a/docs/topics/index.rst +++ b/docs/topics/index.rst @@ -18,7 +18,6 @@ Introductions to all the key parts of Mayan EDMS you'll need to know: tags ocr settings - customization development documentation translations diff --git a/docs/topics/settings.rst b/docs/topics/settings.rst index c0e1cd2fd7..80f5990856 100644 --- a/docs/topics/settings.rst +++ b/docs/topics/settings.rst @@ -433,18 +433,6 @@ Default: ``5`` Maximum number of search queries to remember per user. -Main -==== - -.. setting:: MAIN_DISABLE_HOME_VIEW - -**MAIN_DISABLE_HOME_VIEW** - -Default: ``False`` - -Disable the home view and redirect users straight to the recent document list as soon as they log in. - - User management =============== diff --git a/mayan/apps/main/__init__.py b/mayan/apps/main/__init__.py index 9616f5f183..2ad7a1da5c 100644 --- a/mayan/apps/main/__init__.py +++ b/mayan/apps/main/__init__.py @@ -8,10 +8,6 @@ from project_setup.api import register_setup from project_tools.api import register_tool from .links import admin_site, diagnostics, maintenance_menu -from .settings import DISABLE_HOME_VIEW - -if not DISABLE_HOME_VIEW: - register_top_menu('home', link={'text': _(u'Home'), 'view': 'main:home', 'famfam': 'house'}, position=0) if 'django.contrib.admin' in django_settings.INSTALLED_APPS: register_setup(admin_site) diff --git a/mayan/apps/main/settings.py b/mayan/apps/main/settings.py index 907ddfbf5a..17d05a0f55 100644 --- a/mayan/apps/main/settings.py +++ b/mayan/apps/main/settings.py @@ -3,14 +3,6 @@ from django.utils.translation import ugettext_lazy as _ from smart_settings.api import register_setting, register_settings -register_setting( - namespace=u'main', - module=u'main.settings', - name=u'DISABLE_HOME_VIEW', - global_name=u'MAIN_DISABLE_HOME_VIEW', - default=False, -) - register_settings( namespace=u'main', module=u'main.settings', diff --git a/mayan/apps/main/views.py b/mayan/apps/main/views.py index c768716037..ae73e33e13 100644 --- a/mayan/apps/main/views.py +++ b/mayan/apps/main/views.py @@ -10,15 +10,10 @@ from django.utils.translation import ugettext_lazy as _ from permissions.models import Permission from .api import diagnostics, tools -from .settings import DISABLE_HOME_VIEW def home(request): - if DISABLE_HOME_VIEW: - return HttpResponseRedirect(reverse('documents:document_list_recent')) - else: - return render_to_response('main/home.html', {}, - context_instance=RequestContext(request)) + return HttpResponseRedirect(reverse('documents:document_list_recent')) def maintenance_menu(request):