embeded pandora mobile view
This commit is contained in:
commit
b420bf43b7
45 changed files with 3437 additions and 0 deletions
23
app/item/admin.py
Normal file
23
app/item/admin.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
from django.contrib import admin
|
||||
|
||||
from . import models
|
||||
|
||||
|
||||
class ItemAdmin(admin.ModelAdmin):
|
||||
search_fields = ['title', 'description', 'url']
|
||||
list_display = ['__str__', 'id', 'published']
|
||||
list_filter = (
|
||||
("published", admin.EmptyFieldListFilter),
|
||||
)
|
||||
|
||||
admin.site.register(models.Item, ItemAdmin)
|
||||
|
||||
|
||||
class CommentAdmin(admin.ModelAdmin):
|
||||
search_fields = ['item__title', 'item__url', 'text', 'name', 'email']
|
||||
list_display = ['__str__', 'published']
|
||||
list_filter = (
|
||||
("published", admin.EmptyFieldListFilter),
|
||||
)
|
||||
|
||||
admin.site.register(models.Comment, CommentAdmin)
|
||||
Loading…
Add table
Add a link
Reference in a new issue