0.12.28 localization routines
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from .models import *
|
||||
from django.template.loader import render_to_string
|
||||
from django.utils.translation import get_language, activate
|
||||
|
||||
def get_cur_user_subscribe(user):
|
||||
|
||||
@@ -26,6 +27,9 @@ def get_profile_subscribe_page_content_html(request):
|
||||
|
||||
try:
|
||||
|
||||
from GeneralApp.funcs import get_and_set_lang
|
||||
lang = get_and_set_lang(request)
|
||||
|
||||
# data = json.loads(request.body)
|
||||
# all_options = SubscribeOption.objects.filter(enable=True)
|
||||
subscribes, all_options = get_subsribes_w_options()
|
||||
|
||||
Reference in New Issue
Block a user