diff --git a/InvenTree/InvenTree/urls.py b/InvenTree/InvenTree/urls.py index bc0316cca0..0b4292cbd9 100644 --- a/InvenTree/InvenTree/urls.py +++ b/InvenTree/InvenTree/urls.py @@ -77,7 +77,6 @@ settings_urls = [ url(r'^build/?', SettingsView.as_view(template_name='InvenTree/settings/build.html'), name='settings-build'), url(r'^purchase-order/?', SettingsView.as_view(template_name='InvenTree/settings/po.html'), name='settings-po'), url(r'^sales-order/?', SettingsView.as_view(template_name='InvenTree/settings/so.html'), name='settings-so'), - url(r'^other/?', SettingsView.as_view(template_name='InvenTree/settings/other.html'), name='settings-other'), # Catch any other urls url(r'^.*$', SettingsView.as_view(template_name='InvenTree/settings/user.html'), name='settings'), diff --git a/InvenTree/common/apps.py b/InvenTree/common/apps.py index 7106c1b746..afdf845f15 100644 --- a/InvenTree/common/apps.py +++ b/InvenTree/common/apps.py @@ -39,6 +39,9 @@ class CommonConfig(AppConfig): instance = InvenTreeSetting.objects.get(key='InstanceName') instance_name = instance.value + # Delete the legacy key + instance.delete() + # Create new value InvenTreeSetting.objects.create( key='INVENTREE_INSTANCE', diff --git a/InvenTree/templates/InvenTree/settings/other.html b/InvenTree/templates/InvenTree/settings/other.html deleted file mode 100644 index c518074fd0..0000000000 --- a/InvenTree/templates/InvenTree/settings/other.html +++ /dev/null @@ -1,44 +0,0 @@ -{% extends "InvenTree/settings/settings.html" %} - -{% load i18n %} - -{% block tabs %} -{% include "InvenTree/settings/tabs.html" with tab='other' %} -{% endblock %} - - -{% block subtitle %} -{% trans "Other Settings" %} -{% endblock %} - -{% block settings %} - -
Setting | -Value | -Description | -
---|---|---|
{{ setting.key }} | -{{ setting.value }} | -{{ setting.description }} | -