From f707dd34305384351d58406e65315719a70dd582 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 13 Sep 2019 23:02:54 +1000 Subject: [PATCH] Currency model admin now supports import / export --- InvenTree/common/admin.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/InvenTree/common/admin.py b/InvenTree/common/admin.py index 1628f811a7..e0db0a7136 100644 --- a/InvenTree/common/admin.py +++ b/InvenTree/common/admin.py @@ -1,9 +1,14 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + from django.contrib import admin +from import_export.admin import ImportExportModelAdmin + from .models import Currency -class CurrencyAdmin(admin.ModelAdmin): +class CurrencyAdmin(ImportExportModelAdmin): list_display = ('symbol', 'suffix', 'description', 'value', 'base')