First version

This commit is contained in:
2020-05-13 15:54:40 +02:00
parent b26ed98cd4
commit a4c55565ec
69 changed files with 2899 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
from django.contrib import admin
from .models import Schedule
# Register your models here.
@admin.register(Schedule)
class ScheduleAdmin(admin.ModelAdmin):
list_display = ('name', 'employee', 'email', 'created_at', 'processed')
ordering = ('name', 'created_at')
search_fields = ('name', 'email')
def processed(self,obj):
return len(obj.output_peregrine) > 0
processed.boolean = True