hi,
Enter code here...

my django_cms == 3.2.3
django == 1.8.10

my cms_plugins.py is


from .models import *
 from cms.utils import get_language_from_request
 from django.contrib import admin




 

class FaqPlugin(CMSPluginBase): name = _("Faq Plugin")
render_template = "faq/faq_list.html"


def render(self, context, instance, placeholder):

faqs = Faq.objects.language('fr').filter(status="published")
 lang = context['request']

 context.update({'instance' : instance, 'faqs' : faqs})

 return context



    plugin_pool.register_plugin(FaqPlugin)

i want to get current language object instead of 'fr' how can i get that
plz help!!

-- 
Message URL: 
https://groups.google.com/d/msg/django-cms-developers/topic-id/message-id
Unsubscribe: send a message to 
[email protected]
--- 
You received this message because you are subscribed to the Google Groups 
"django CMS developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/django-cms-developers/c087a609-96a7-4995-a462-22cdd87091b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to