fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OPDS search_* filter->filt arg name
[wolnelektury.git]
/
apps
/
suggest
/
admin.py
diff --git
a/apps/suggest/admin.py
b/apps/suggest/admin.py
index
d1ce07b
..
b5fcb5c
100644
(file)
--- a/
apps/suggest/admin.py
+++ b/
apps/suggest/admin.py
@@
-4,9
+4,15
@@
#
from django.contrib import admin
#
from django.contrib import admin
-from suggest.models import Suggestion
+from suggest.models import Suggestion
, PublishingSuggestion
class SuggestionAdmin(admin.ModelAdmin):
list_display = ('created_at', 'contact', 'user', 'description')
admin.site.register(Suggestion, SuggestionAdmin)
class SuggestionAdmin(admin.ModelAdmin):
list_display = ('created_at', 'contact', 'user', 'description')
admin.site.register(Suggestion, SuggestionAdmin)
+
+
+class PublishingSuggestionAdmin(admin.ModelAdmin):
+ list_display = ('created_at', 'contact', 'user', 'books', 'audiobooks')
+
+admin.site.register(PublishingSuggestion, PublishingSuggestionAdmin)