mirror of
https://github.com/Hopiu/django-watson.git
synced 2026-03-17 06:00:24 +00:00
14 lines
315 B
Python
14 lines
315 B
Python
from django.contrib import admin
|
|
|
|
from watson.admin import SearchAdmin
|
|
from test_watson.models import WatsonTestModel1
|
|
|
|
|
|
class WatsonTestModel1Admin(SearchAdmin):
|
|
|
|
search_fields = ("title", "description", "content",)
|
|
|
|
list_display = ("title",)
|
|
|
|
|
|
admin.site.register(WatsonTestModel1, WatsonTestModel1Admin)
|