Upgrades.
[wolnelektury.git] / src / suggest / admin.py
1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
3 #
4 from django.contrib import admin
5
6 from suggest.models import Suggestion, PublishingSuggestion
7
8
9 class SuggestionAdmin(admin.ModelAdmin):
10     list_display = ('created_at', 'contact', 'user', 'description')
11
12 admin.site.register(Suggestion, SuggestionAdmin)
13
14
15 class PublishingSuggestionAdmin(admin.ModelAdmin):
16     list_display = ('created_at', 'contact', 'user', 'books', 'audiobooks')
17
18 admin.site.register(PublishingSuggestion, PublishingSuggestionAdmin)