InvenTree/InvenTree/common/admin.py

17 lines
331 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
2019-09-02 22:30:14 +00:00
from django.contrib import admin
from import_export.admin import ImportExportModelAdmin
from .models import InvenTreeSetting
2019-09-02 23:07:03 +00:00
class SettingsAdmin(ImportExportModelAdmin):
list_display = ('key', 'value')
admin.site.register(InvenTreeSetting, SettingsAdmin)