+
+
+
+class CategoryAdmin(admin.ModelAdmin):
+ search_fields = ["name"]
+
+admin.site.register(models.Epoch, CategoryAdmin)
+admin.site.register(models.Genre, CategoryAdmin)
+admin.site.register(models.Kind, CategoryAdmin)
+
+
+
+class WorkRateInline(admin.TabularInline):
+ model = models.WorkRate
+ autocomplete_fields = ['kinds', 'genres', 'epochs', 'collections']
+
+
+class WorkTypeAdmin(admin.ModelAdmin):
+ inlines = [WorkRateInline]
+
+admin.site.register(models.WorkType, WorkTypeAdmin)
+