Added sortable_field_name to the collection member inline for grappelli.
authorHarris Lapiroff <hlapirof@oberlin.edu>
Mon, 18 Apr 2011 19:58:46 +0000 (15:58 -0400)
committerHarris Lapiroff <hlapirof@oberlin.edu>
Mon, 18 Apr 2011 19:58:46 +0000 (15:58 -0400)
admin/collections.py

index dfc4826..d422b74 100644 (file)
@@ -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):