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