0.0.9 section view
This commit is contained in:
@@ -32,7 +32,7 @@ class Admin_Inline_WidgetForBlock(SuperInlineModelAdmin, Admin_Trans_BaseIconSta
|
||||
('title', 'description', 'picture'),
|
||||
('bg_color', ),
|
||||
('but_title', 'but_color'),
|
||||
('url',),
|
||||
('url', 'order'),
|
||||
]
|
||||
})
|
||||
]
|
||||
@@ -56,7 +56,7 @@ class Admin_StackedInline_Block(Admin_Trans_GenericBaseIconStackedInline, SuperI
|
||||
('bg_color', ),
|
||||
('but_title', 'but_color'),
|
||||
('url',),
|
||||
('child_in_row_count',),
|
||||
('child_in_row_count', 'order'),
|
||||
]
|
||||
})
|
||||
]
|
||||
|
||||
@@ -3,6 +3,12 @@ from django.http import HttpResponse, Http404, FileResponse
|
||||
def get_inter_Dict(user):
|
||||
|
||||
Dict = {}
|
||||
|
||||
from ServicesApp.funcs import get_sections
|
||||
sections = get_sections()
|
||||
Dict.update({
|
||||
'sections': sections
|
||||
})
|
||||
# from SubscribesApp.funcs import get_cur_user_subscribe
|
||||
# user_subscribe = get_cur_user_subscribe(user)
|
||||
|
||||
|
||||
@@ -19,14 +19,11 @@ def MainPage(request):
|
||||
|
||||
page = StaticPage.objects.get(url='main')
|
||||
|
||||
from ServicesApp.funcs import get_sections
|
||||
sections = get_sections()
|
||||
# from ArticlesApp.models import ArticleModel
|
||||
# arts = ArticleModel.objects.filter(enable=True).order_by('-createDT')[:4]
|
||||
|
||||
Dict = {
|
||||
'page': page,
|
||||
'sections': sections
|
||||
# 'articles': arts,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user