mirror of https://github.com/doccano/doccano.git
pythondatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learningannotation-tool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
535 B
27 lines
535 B
from django.contrib import admin
|
|
|
|
from .models import Comment, Example
|
|
|
|
|
|
class ExampleAdmin(admin.ModelAdmin):
|
|
list_display = ("text", "project", "meta")
|
|
ordering = ("project",)
|
|
search_fields = ("text",)
|
|
|
|
|
|
class CommentAdmin(admin.ModelAdmin):
|
|
list_display = (
|
|
"user",
|
|
"example",
|
|
"text",
|
|
"created_at",
|
|
)
|
|
ordering = (
|
|
"user",
|
|
"created_at",
|
|
)
|
|
search_fields = ("user",)
|
|
|
|
|
|
admin.site.register(Example, ExampleAdmin)
|
|
admin.site.register(Comment, CommentAdmin)
|