0.2.2 feedback_form in js
This commit is contained in:
@@ -18,16 +18,15 @@ def get_inter_Dict(user, context_Dict):
|
||||
if fb_block:
|
||||
form_name = fb_block.name
|
||||
|
||||
|
||||
from .forms import FeedbackForm
|
||||
feedback_form = FeedbackForm()
|
||||
if form_name:
|
||||
from .forms import FeedbackForm
|
||||
feedback_form = FeedbackForm()
|
||||
feedback_form.initial = {'form_name': form_name}
|
||||
Dict.update({'feedback_form': feedback_form})
|
||||
|
||||
Dict.update({
|
||||
'sections': sections,
|
||||
'logo': get_logo_url(),
|
||||
'feedback_form': feedback_form,
|
||||
})
|
||||
# from SubscribesApp.funcs import get_cur_user_subscribe
|
||||
# user_subscribe = get_cur_user_subscribe(user)
|
||||
|
||||
@@ -64,6 +64,9 @@ def get_content_for_section_ajax(request):
|
||||
from .funcs import get_section_views_Dict
|
||||
Dict.update(get_section_views_Dict(section))
|
||||
|
||||
from GeneralApp.funcs import get_inter_Dict
|
||||
Dict.update(get_inter_Dict(request.user, Dict))
|
||||
|
||||
html = render_to_string('pages/content/c_section_content.html', Dict, request=request)
|
||||
|
||||
res_Dict = {
|
||||
|
||||
Reference in New Issue
Block a user