our')
Thank you for your help !
On 7 août, 03:52, Malcolm Tredinnick wrote:
> On Thu, 2009-08-06 at 07:35 -0700, nono wrote:
> > I was reading my post and though it was not very clear
>
> > My model uses CommaSeparatedIntegerField to store some integer values.
> > I
On Thu, 2009-08-06 at 07:35 -0700, nono wrote:
> I was reading my post and though it was not very clear
>
> My model uses CommaSeparatedIntegerField to store some integer values.
> I want my users to use SelectMultiple widget to create/update those
> integer so I put a ChoiceFi
I was reading my post and though it was not very clear
My model uses CommaSeparatedIntegerField to store some integer values.
I want my users to use SelectMultiple widget to create/update those
integer so I put a ChoiceField with widget=SelectMultiple in my form.
My problem is that all I can get
Hi,
my model uses CommaSeparatedIntegerField to store a list of integer. I
want my users to use SelectMultiple widget to create/update this field
so I put a ChoiceField with widget=SelectMultiple in my form. My
problem is that all I can get from this is a list of values where I
expect comma
On Thu, Mar 12, 2009 at 5:33 AM, Malcolm Tredinnick <
malc...@pointy-stick.com> wrote:
>
> On Thu, 2009-03-12 at 02:55 -0700, K*K wrote:
> > I got a strange problem.
> >
> > I specify a ChoiceField as SelectMultiple widget but got problem in
> > validation.
&g
On Thu, 2009-03-12 at 02:55 -0700, K*K wrote:
> I got a strange problem.
>
> I specify a ChoiceField as SelectMultiple widget but got problem in
> validation.
>
> Can django ChoiceFIeld support valid with a List ? or how can I do
> it ?
>
> The source code is follo
I got a strange problem.
I specify a ChoiceField as SelectMultiple widget but got problem in
validation.
Can django ChoiceFIeld support valid with a List ? or how can I do
it ?
The source code is following:
# Source code of forms.py:
COMPONENTS_CHOICE = []
for component in get_components
On Thu, 2009-01-22 at 04:58 -0800, Lee wrote:
> Thanks a lot.
>
> I'd like to pass the dynamic value to the choices, like what you said
> in the last situation.
>
> Could you please give me some more instructions, I'm new in python and
> django.
I've given you a code fragment already to show ho
Thanks a lot.
I'd like to pass the dynamic value to the choices, like what you said
in the last situation.
Could you please give me some more instructions, I'm new in python and
django.
regards
Lee
On Jan 22, 11:21 pm, Malcolm Tredinnick
wrote:
> On Thu, 2009-01-22 at 03:54 -0800, Lee wrote
On Thu, 2009-01-22 at 03:54 -0800, Lee wrote:
> Hi, Malcolm
>
> Thanks for you reply. However, I'm still not clear.
>
> My code is :
>
> from django import forms
>
> class TestForm(forms.Form):
> title = forms.CharField( max_length=10 )
> selection = forms.CharField( widget=forms.Select )
x27;selection':{'1':'a','2':'b'}})
print f
I want output like:
a
b
However, the real output is:
Title:
Selection:
regards
Lee
On Jan 22, 7:32 pm, Malcolm Tredinnick
wrote:
> On Wed, 2009-01-21 at 21:41 -0800, Lee wrote:
> > Hi, ev
On Wed, 2009-01-21 at 21:41 -0800, Lee wrote:
> Hi, everyone.
>
> I have some trouble in SelectMultiple Widget. The detailed information
> is that:
>
> In the form.py, I have defined a TestForm which contain a
> SelectMultiple Widget called selection
>
> #form.py
Hi, everyone.
I have some trouble in SelectMultiple Widget. The detailed information
is that:
In the form.py, I have defined a TestForm which contain a
SelectMultiple Widget called selection
#form.py
class TestForm(forms.Form):
selection = forms.CharField( widget=forms.SelectMultiple
; > I am working on a search form that has a SelectMultiple widget. What
> > would be the best way to make a complex lookup with the SelectMultiple
> > widget?
>
> try this:
>
> try:
> district_ids = [int(x) for x in request.GET.getlist('district
> I am working on a search form that has a SelectMultiple widget. What
> would be the best way to make a complex lookup with the SelectMultiple
> widget?
try this:
try:
district_ids = [int(x) for x in request.GET.getlist('district')]
if len(district_ids) == 0:
I am working on a search form that has a SelectMultiple widget. What
would be the best way to make a complex lookup with the SelectMultiple
widget?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users&q
Hi Masuran!
Nice, I'm glad you've made it.
I'm pretty sure that it's possible to clean up or dismiss some of
those JS files, most of them are related to Django admin and won't be
needed just to use the widget.
The 'jsi18n' path is a Django admin view, it's path is relative
because the Admin app
Finally, problem solved :)
These are the javascript functions included in the admin page that
works:
The problem was the fact that the jsi18n script is included by a
relative path. If your URL path is just one directory longer or
shorter than the admin URL path, the i18n script can't be fo
Hi Masuran,
You're welcome. :)
That's weird!
Did you save the entire page source *with* embedded files (.css, .js,
images)?
The page source itself is the same, what makes the "magic" is the
'SelectFilter2.js' file, that manipulates the source when the page
loads, transforming SelectMultiple fie
Try using firebug (extension for Firefox). You can see how it is
instantiated in the admin site and where things are going wrong.
I suspect you either are missing the "vSelectMultipleField" (is that
right?) class, the multiple="multiple" attribute, or have not got all
of the JS included. As for wh
Hello Enrico,
First of all thank you for your help :)
But unfortunately that didn't solve my problem.
Next I tried to copy the entire source of an admin generated form that
had the two list boxes and modify it. But even without modifying it I
didn't get the two listboxes. Very very very strange.
Hi,
There is a 'YOUR_ADMIN_MEDIA/js/SelectFilter2.js' file, I think this
is the file that does the "magic".
Maybe you can use it as a base for applying the widget on your site.
Best regards,
Enrico
--~--~-~--~~~---~--~~
You received this message because you are
Hey Enrico,
I already tried that, I can't see anything special about the code in
the admin page.
On 10 apr, 14:21, "Enrico" <[EMAIL PROTECTED]> wrote:
> Hi!
>
> The widget is almost the same as your "blank listbox" but with a
> little Javascript.
>
> Take a look at the admin page source, it may
Hi!
The widget is almost the same as your "blank listbox" but with a
little Javascript.
Take a look at the admin page source, it may be easy to reuse the
code.
Best regards,
Enrico
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
Hello everyone,
The admin interface has the most wonderful SelectMultiple widget that
you can have with a ManyToMany Field. You know, the one with the two
listboxes where you can transfer an item from the left to the right.
Does anyone know how you can use this widget in your own forms? I can
25 matches
Mail list logo