13 lines
302 B
Python
Executable File
13 lines
302 B
Python
Executable File
from django.contrib import admin
|
|
from apps.wf.models import State, Workflow
|
|
# Register your models here.
|
|
|
|
|
|
@admin.register(Workflow)
|
|
class WorkflowAdmin(admin.ModelAdmin):
|
|
date_hierarchy = 'create_time'
|
|
|
|
|
|
@admin.register(State)
|
|
class StateAdmin(admin.ModelAdmin):
|
|
date_hierarchy = 'create_time' |