cb33899132
This is built from our boilerplate and adds a first working prototype of indexing (single document or bulk) and searching (with basic filtering and sorting. No authentication yet). Run `make demo` to generate an index for development.
16 lines
433 B
Python
16 lines
433 B
Python
"""Admin config for drive's core app"""
|
|
from django.contrib import admin
|
|
|
|
from .models import Service
|
|
|
|
|
|
@admin.register(Service)
|
|
class ServiceAdmin(admin.ModelAdmin):
|
|
"""Register the serivce model for the admin site"""
|
|
|
|
list_display = ("name", "created_at", "is_active")
|
|
search_fields = ("name",)
|
|
list_filter = ("is_active", "created_at")
|
|
ordering = ("-created_at",)
|
|
readonly_fields = ("created_at", "token")
|