From 02761cda25047bcb26cccb0b14bc26fefb4bc788 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 29 Jun 2015 14:01:52 -0400 Subject: [PATCH] Remove link to Django's admin site. User are discouraged to change entries directly in the database. --- mayan/apps/common/apps.py | 5 ++--- mayan/apps/common/links.py | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/mayan/apps/common/apps.py b/mayan/apps/common/apps.py index 8699a157e4..ee2fe442cf 100644 --- a/mayan/apps/common/apps.py +++ b/mayan/apps/common/apps.py @@ -13,8 +13,8 @@ from .handlers import ( user_locale_profile_session_config, user_locale_profile_create ) from .links import ( - link_about, link_admin_site, link_current_user_details, - link_current_user_edit, link_current_user_locale_profile_details, + link_about, link_current_user_details, link_current_user_edit, + link_current_user_locale_profile_details, link_current_user_locale_profile_edit, link_license, link_maintenance_menu, link_setup, link_tools ) @@ -67,7 +67,6 @@ class CommonApp(MayanAppConfig): ], sources=['common:current_user_details', 'common:current_user_edit', 'common:current_user_locale_profile_details', 'common:current_user_locale_profile_edit', 'authentication:password_change_view', 'common:setup_list', 'common:tools_list'] ) - menu_setup.bind_links(links=[link_admin_site]) menu_tools.bind_links(links=[link_maintenance_menu]) post_migrate.connect(create_anonymous_user, dispatch_uid='create_anonymous_user', sender=self) diff --git a/mayan/apps/common/links.py b/mayan/apps/common/links.py index c1b3e177e6..5aa2596a57 100644 --- a/mayan/apps/common/links.py +++ b/mayan/apps/common/links.py @@ -10,7 +10,6 @@ def is_superuser(context): link_about = Link(icon='fa fa-question', text=_('About'), view='common:about_view') -link_admin_site = Link(condition=is_superuser, icon='fa fa-keyboard-o', text=_('Admin site'), view='admin:index') link_current_user_details = Link(icon='fa fa-user', text=_('User details'), view='common:current_user_details') link_current_user_edit = Link(icon='fa fa-user', text=_('Edit details'), view='common:current_user_edit') link_current_user_locale_profile_details = Link(icon='fa fa-globe', text=_('Locale profile'), view='common:current_user_locale_profile_details')