mirror of https://github.com/doccano/doccano.git
pythonannotation-tooldatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learning
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.
21 lines
451 B
21 lines
451 B
from django.contrib import admin
|
|
|
|
from .models import AutoLabelingConfig
|
|
|
|
|
|
class AutoLabelingConfigAdmin(admin.ModelAdmin):
|
|
list_display = (
|
|
"project",
|
|
"model_name",
|
|
"model_attrs",
|
|
)
|
|
ordering = ("project",)
|
|
|
|
def get_readonly_fields(self, request, obj=None):
|
|
if obj:
|
|
return ["model_name"]
|
|
else:
|
|
return []
|
|
|
|
|
|
admin.site.register(AutoLabelingConfig, AutoLabelingConfigAdmin)
|