2020-04-26 19:46:58 +02:00
|
|
|
from django.contrib import admin
|
2020-04-26 22:25:58 +02:00
|
|
|
from .models import Identity, Task
|
2020-04-26 19:46:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
class IdentityAdmin(admin.ModelAdmin):
|
|
|
|
fields = ['identity', 'name', 'notes', 'heartbeat']
|
|
|
|
|
|
|
|
|
|
|
|
class TaskAdmin(admin.ModelAdmin):
|
2020-04-26 22:25:58 +02:00
|
|
|
fields = ['stream', 'type', 'configuration', 'claimed_by']
|
2020-04-26 19:46:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
admin.site.register(Identity, IdentityAdmin)
|
|
|
|
admin.site.register(Task, TaskAdmin)
|