# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.contrib import admin
from . import models

from organizer.admin import admin_site

admin.site.register(models.Donation)
admin_site.register(models.Donation)

# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.contrib import admin
from import_export.admin import ImportExportModelAdmin
from organizer.admin import admin_site

from . import models, importing

class DonationAdmin(ImportExportModelAdmin):
    resource_class = importing.DonationResource

    list_display = (
        'value', 'person', 'timestamp', 'recurring'
    )

    list_filter = (
        'person', 'recurring'
    )

admin.site.register(models.Donation, DonationAdmin)
admin_site.register(models.Donation, DonationAdmin)

expand admin ui