djeuscan: tweak admin.py
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
This commit is contained in:
parent
a12e2c42ea
commit
1a7efc58a7
@ -7,7 +7,7 @@ from django.contrib import admin
|
|||||||
|
|
||||||
class EuscanResultAdmin(admin.ModelAdmin):
|
class EuscanResultAdmin(admin.ModelAdmin):
|
||||||
search_fields = ('package__name', 'package__category')
|
search_fields = ('package__name', 'package__category')
|
||||||
list_filter = ('datetime', )
|
list_filter = ('datetime', 'package__category')
|
||||||
ordering = ["-datetime"]
|
ordering = ["-datetime"]
|
||||||
|
|
||||||
|
|
||||||
@ -31,6 +31,12 @@ class VersionAdmin(admin.ModelAdmin):
|
|||||||
list_filter = ('overlay', 'packaged', 'alive')
|
list_filter = ('overlay', 'packaged', 'alive')
|
||||||
|
|
||||||
|
|
||||||
|
class ProblemReportAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ('package', 'subject', 'datetime')
|
||||||
|
search_fields = ('package__name', 'package__category')
|
||||||
|
list_filter = ('datetime', 'package__category')
|
||||||
|
ordering = ["-datetime"]
|
||||||
|
|
||||||
admin.site.register(Package, PackageAdmin)
|
admin.site.register(Package, PackageAdmin)
|
||||||
|
|
||||||
admin.site.register(Herd, HerdAdmin)
|
admin.site.register(Herd, HerdAdmin)
|
||||||
@ -52,4 +58,5 @@ admin.site.register(HerdAssociation)
|
|||||||
admin.site.register(CategoryAssociation)
|
admin.site.register(CategoryAssociation)
|
||||||
admin.site.register(MaintainerAssociation)
|
admin.site.register(MaintainerAssociation)
|
||||||
admin.site.register(PackageAssociation)
|
admin.site.register(PackageAssociation)
|
||||||
admin.site.register(ProblemReport)
|
|
||||||
|
admin.site.register(ProblemReport, ProblemReportAdmin)
|
||||||
|
Loading…
Reference in New Issue
Block a user