Re: Problem with FilteredSelectMultiple widget

2013-02-01 Thread Victor Rocha
You are very welcome!

On Sat, Feb 2, 2013 at 1:14 AM, KVR  wrote:

> Thank you very much Victor Rocha !!
> That resolved my issue.
>
> Regards,
> kvr
>
>
> On Saturday, February 2, 2013 11:06:29 AM UTC+5:30, Victor Rocha wrote:
>
>> One way around this is to call the view on a different path one thats not
>> password protected such as the admin urls.
>> In order to do that, you simply add this to your urls:
>> (r'^my_url/jsi18n', 'django.views.i18n.javascript_**catalog') and when
>> your loading the javascript files on your templated you do this > src="/my_url/jsi18n/" type="text/javascript">
>>
>> Thank you,
>> Victor Rocha
>> rochapps.com
>>
>> On Sat, Feb 2, 2013 at 12:15 AM, KVR  wrote:
>>
>>> Yeah, it's throwing js error. Could you please tell me how to point
>>> that, I am just newbie to Django.
>>> I've tried adding the following to urls.py
>>>
>>> (r'^jsi18n/(?P\S+?)/**$', 'django.views.i18n.javascript_**
>>> catalog'),
>>>
>>> I did not understand what to replace with 
>>>
>>>
>>> On Saturday, February 2, 2013 10:38:29 AM UTC+5:30, Victor Rocha wrote:
>>>
 I remember running into this problem quite sometime ago. What happens
 is that in order to access the file jsi18n you need to be logged in.
 What you need to do it's save a copy of the file and point to the file
 instead.

 thank you,
 Victor rocha
 rochapps.com

 On Fri, Feb 1, 2013 at 11:52 PM, KVR  wrote:

> forms.py
> class SampleWidget(forms.Form):
> date=forms.CharField(widget=**Ad**minDateWidget,max_length=**100)
>  users = forms.**ModelMultipleChoiceField**(**
> queryset=User.objects.all(),**w**idget=FilteredSelectMultiple(**(**"Users"),
> False))
>
>
> mytemple.html
>
> {% block content %}
> 
> 
> 
>
>