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.
19 lines
455 B
19 lines
455 B
from django.contrib import admin
|
|
|
|
from .models import Role, RoleMapping
|
|
|
|
|
|
class RoleAdmin(admin.ModelAdmin):
|
|
list_display = ('name', 'description')
|
|
ordering = ('name',)
|
|
search_fields = ('name',)
|
|
|
|
|
|
class RoleMappingAdmin(admin.ModelAdmin):
|
|
list_display = ('user', 'role', 'project', )
|
|
ordering = ('user',)
|
|
search_fields = ('user__username',)
|
|
|
|
|
|
admin.site.register(Role, RoleAdmin)
|
|
admin.site.register(RoleMapping, RoleMappingAdmin)
|