189cd718ed1f7e430e30ddf3eab4515e9a10d780
[redakcja.git] / src / catalogue / admin.py
1 from django.contrib import admin
2 from . import models
3
4
5
6 class AuthorAdmin(admin.ModelAdmin):
7     search_fields = ['name']
8
9 admin.site.register(models.Author, AuthorAdmin)
10
11
12 class BookAdmin(admin.ModelAdmin):
13     raw_id_fields = ['authors']
14     autocomplete_fields = ['translators']
15
16 admin.site.register(models.Book, BookAdmin)
17