git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor optimization: only call patterns at the end of winer.FeedView.feed_patterns.
[philo.git]
/
philo
/
admin
/
nodes.py
diff --git
a/philo/admin/nodes.py
b/philo/admin/nodes.py
index
853ba25
..
46c456a
100644
(file)
--- a/
philo/admin/nodes.py
+++ b/
philo/admin/nodes.py
@@
-47,10
+47,12
@@
class RedirectAdmin(ViewAdmin):
class FileAdmin(ViewAdmin):
fieldsets = (
(None, {
class FileAdmin(ViewAdmin):
fieldsets = (
(None, {
- 'fields': ('file', 'mimetype')
+ 'fields': ('
name', '
file', 'mimetype')
}),
)
}),
)
- list_display = ('mimetype', 'file')
+ list_display = ('name', 'mimetype', 'file')
+ search_fields = ('name',)
+ list_filter = ('mimetype',)
admin.site.register(Node, NodeAdmin)
admin.site.register(Node, NodeAdmin)