You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
311 B
Python

from django.contrib import admin
from nano.activation.models import Key
class KeyAdmin(admin.ModelAdmin):
model = Key
list_display = ('key', 'group', 'pub_date', 'activated_by', 'expires')
list_filter = ('group', 'activated_by')
date_hierarchy = 'pub_date'
admin.site.register(Key, KeyAdmin)