Update by natay on Sat Nov 18 15:36:24 EST 2017 from natay
@@ -3,20 +3,29 @@ from .models import Job, Analysis
-
+@admin.register(Job)
class JobAdmin(admin.ModelAdmin):
search_fields = ('name', 'owner__first_name', 'owner__email', 'state')
list_display = ("name", "state","start_date", "security","date")
- list_filter = ("state", "security")
+ list_filter = ("state", "security", "project__name")
+
+
+ fieldsets = ((None,
+ {'fields': ("name","owner",'project',("uid","sticky"),
+ ("state", "security"))}),
+ ("Run Time Settings",
+ {'fields':("json_text", "template"),
+ "classes": ("wide", 'extrapretty')},
+ ),
+ )
+@admin.register(Analysis)
class AnalysisAdmin(admin.ModelAdmin):
search_fields = ('name', 'text', 'owner__first_name', 'owner__email' )
list_display = ("name", "date", "auth")
- list_filter = ( "state", "auth")
+ list_filter = ( "state", "auth", "project__name")
-admin.site.register(Job, JobAdmin)
-admin.site.register(Analysis, AnalysisAdmin)
\ No newline at end of file
