- form = NodeWithOverrideForm
- fieldsets = (
- (None, {
- 'fields': ('parent', 'slug', 'view_content_type', 'view_object_id'),
- }),
- ('Navigation Overrides', {
- 'fields': ('title', 'url', 'child_navigation'),
- 'classes': COLLAPSE_CLASSES
- })
- )
- inlines = [ChildNavigationOverrideInline] + TreeEntityAdmin.inlines
+ list_display = ('slug', 'view', 'accepts_subpath')
+ related_field_lookups = {
+ 'fk': [],
+ 'm2m': [],
+ 'generic': [['view_content_type', 'view_object_id']]
+ }
+
+ def accepts_subpath(self, obj):
+ return obj.accepts_subpath
+ accepts_subpath.boolean = True