git.ithinksw.org
/
philo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8a7ab75
)
Added sortable_field_name to the collection member inline for grappelli.
author
Harris Lapiroff
<hlapirof@oberlin.edu>
Mon, 18 Apr 2011 19:58:46 +0000
(15:58 -0400)
committer
Harris Lapiroff
<hlapirof@oberlin.edu>
Mon, 18 Apr 2011 19:58:46 +0000
(15:58 -0400)
admin/collections.py
patch
|
blob
|
history
diff --git
a/admin/collections.py
b/admin/collections.py
index
dfc4826
..
d422b74
100644
(file)
--- a/
admin/collections.py
+++ b/
admin/collections.py
@@
-10,6
+10,7
@@
class CollectionMemberInline(admin.TabularInline):
classes = COLLAPSE_CLASSES
allow_add = True
fields = ('member_content_type', 'member_object_id', 'index')
classes = COLLAPSE_CLASSES
allow_add = True
fields = ('member_content_type', 'member_object_id', 'index')
+ sortable_field_name = 'index'
class CollectionAdmin(admin.ModelAdmin):
class CollectionAdmin(admin.ModelAdmin):