2012-05-13 14:09:22 +02:00
|
|
|
from djeuscan.models import Package, Version, VersionLog, EuscanResult, \
|
|
|
|
Log, WorldLog, CategoryLog, HerdLog, MaintainerLog, Herd, Maintainer
|
2011-04-13 08:50:24 +02:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2011-11-15 16:56:20 +01:00
|
|
|
admin.site.register(Herd)
|
|
|
|
admin.site.register(Maintainer)
|
|
|
|
|
2012-04-28 18:16:05 +02:00
|
|
|
|
2011-11-15 16:56:20 +01:00
|
|
|
class PackageAdmin(admin.ModelAdmin):
|
|
|
|
search_fields = ('category', 'name')
|
2012-04-28 18:16:05 +02:00
|
|
|
|
2011-11-15 16:56:20 +01:00
|
|
|
admin.site.register(Package, PackageAdmin)
|
|
|
|
|
|
|
|
admin.site.register(Version)
|
|
|
|
admin.site.register(VersionLog)
|
|
|
|
admin.site.register(EuscanResult)
|
|
|
|
|
|
|
|
admin.site.register(Log)
|
|
|
|
admin.site.register(WorldLog)
|
|
|
|
admin.site.register(CategoryLog)
|
|
|
|
admin.site.register(HerdLog)
|
|
|
|
admin.site.register(MaintainerLog)
|