git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'lapilofu/hotfix/manifest' into release
[philo.git]
/
philo
/
contrib
/
shipherd
/
admin.py
diff --git
a/philo/contrib/shipherd/admin.py
b/philo/contrib/shipherd/admin.py
index
be31a43
..
246693e
100644
(file)
--- a/
philo/contrib/shipherd/admin.py
+++ b/
philo/contrib/shipherd/admin.py
@@
-11,8
+11,9
@@
NAVIGATION_RAW_ID_FIELDS = ('navigation', 'parent', 'target_node')
class NavigationItemInline(admin.StackedInline):
raw_id_fields = NAVIGATION_RAW_ID_FIELDS
model = NavigationItem
class NavigationItemInline(admin.StackedInline):
raw_id_fields = NAVIGATION_RAW_ID_FIELDS
model = NavigationItem
- extra =
1
+ extra =
0
sortable_field_name = 'order'
sortable_field_name = 'order'
+ ordering = ('order',)
related_lookup_fields = {'fk': raw_id_fields}
related_lookup_fields = {'fk': raw_id_fields}
@@
-69,7
+70,7
@@
class NodeNavigationItemInline(NavigationItemInline):
class NodeNavigationInline(admin.TabularInline):
model = Navigation
class NodeNavigationInline(admin.TabularInline):
model = Navigation
- extra =
1
+ extra =
0
NodeAdmin.inlines = [NodeNavigationInline, NodeNavigationItemInline] + NodeAdmin.inlines
NodeAdmin.inlines = [NodeNavigationInline, NodeNavigationItemInline] + NodeAdmin.inlines