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.

23 lines
574 B

  1. from django.contrib import admin
  2. from .models import Category, Span, TextLabel
  3. class SpanAdmin(admin.ModelAdmin):
  4. list_display = ('example', 'label', 'start_offset', 'user')
  5. ordering = ('example',)
  6. class CategoryAdmin(admin.ModelAdmin):
  7. list_display = ('example', 'label', 'user')
  8. ordering = ('example',)
  9. class TextLabelAdmin(admin.ModelAdmin):
  10. list_display = ('example', 'text', 'user')
  11. ordering = ('example',)
  12. admin.site.register(Category, CategoryAdmin)
  13. admin.site.register(Span, SpanAdmin)
  14. admin.site.register(TextLabel, TextLabelAdmin)