from __future__ import absolute_import
from __future__ import unicode_literals

from django.contrib import admin

from .models import DomainUserHistory


class DomainUserHistoryAdmin(admin.ModelAdmin):
    model = DomainUserHistory
    list_display = ('domain', 'record_date', 'num_users')
    list_filter = ('domain', 'record_date')


admin.site.register(DomainUserHistory, DomainUserHistoryAdmin)

from __future__ import absolute_import
from __future__ import unicode_literals

from django.contrib import admin

from .models import DomainUserHistory


@admin.register(DomainUserHistory)
class DomainUserHistoryAdmin(admin.ModelAdmin):
    model = DomainUserHistory
    list_display = ('domain', 'record_date', 'num_users')
    list_filter = ('domain', 'record_date')

use decorator