Currency model admin now supports import / export

This commit is contained in:
Oliver Walters 2019-09-13 23:02:54 +10:00
parent cb5db332d3
commit f707dd3430

View File

@ -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')