0.0.10 fix get_content_for_section_ajax
This commit is contained in:
@@ -5,6 +5,7 @@ from django.forms import widgets
|
||||
# from nested_inline.admin import NestedStackedInline, NestedTabularInline, NestedModelAdmin, NestedInline
|
||||
from super_inlines.admin import SuperInlineModelAdmin, SuperModelAdmin
|
||||
from GeneralApp.admin import Admin_StackedInline_Block
|
||||
from SlidesApp.admin import Admin_StackedInline_Slide
|
||||
|
||||
def sets_for_formfield_for_dbfield(field, db_field):
|
||||
if db_field.name == 'url' or db_field.name == 'name' or db_field.name == 'title' or db_field.name == 'name_plural':
|
||||
@@ -53,7 +54,7 @@ class Admin_Section(SuperModelAdmin, Admin_Trans_BaseModelViewPage):
|
||||
search_fields = ['name', 'title']
|
||||
# filter_horizontal = ['options']
|
||||
|
||||
inlines = [Admin_StackedInline_Block]
|
||||
inlines = [Admin_StackedInline_Slide, Admin_StackedInline_Block]
|
||||
|
||||
def has_delete_permission(self, request, obj=None):
|
||||
if request.user.is_superuser:
|
||||
|
||||
@@ -5,7 +5,7 @@ from django.conf import settings
|
||||
from .js_views import *
|
||||
|
||||
urlpatterns = [
|
||||
path('get_content_for_section', get_content_for_section_ajax, name='get_content_for_section_ajax'),
|
||||
path('get_content_for_section/', get_content_for_section_ajax, name='get_content_for_section_ajax'),
|
||||
# path('page/<str:url>/', StaticPageView, name='static_page'),
|
||||
# path('test_code', test_code, name='test_code'),
|
||||
]
|
||||
Reference in New Issue
Block a user