1 2 3 4 5 6 7 8 9 10 11
from django.contrib import admin from .models import PackageRelation class PackageRelationAdmin(admin.ModelAdmin): list_display = ('user', 'pkgbase', 'type') list_filter = ('type', 'user') admin.site.register(PackageRelation, PackageRelationAdmin) # vim: set ts=4 sw=4 et: