Re: modify select widget

2008-07-14 Thread [EMAIL PROTECTED]
Sounds like you are looking for this: http://code.djangoproject.com/ticket/4412 On Jul 14, 12:18 pm, rskm1 <[EMAIL PROTECTED]> wrote: > On Jul 13, 9:58 am, "Nikolay Panov" <[EMAIL PROTECTED]> wrote: > > > You should create your custom widget for this. > > Also see the thread from a couple weeks a

Re: modify select widget

2008-07-14 Thread rskm1
On Jul 13, 9:58 am, "Nikolay Panov" <[EMAIL PROTECTED]> wrote: > You should create your custom widget for this. Also see the thread from a couple weeks ago titled "choices", http://groups.google.com/group/django-users/browse_thread/thread/d373794afef19e39/0009b671ebd91ac1 --~--~-~--~

Re: modify select widget

2008-07-13 Thread Nikolay Panov
Hi, > Is there any easy way to do that? O are hint on how to do it? You should create your custom widget for this. Regards, Nikolay. On Sat, Jul 12, 2008 at 19:57, Nenillo <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm doing an app with a category model. That category model has an > autoreferenc

Re: modify select widget

2008-07-13 Thread Jeff FW
Misspoke in that last post--if you want a select tag, obviously you won't be using li tags. You'd use option tags, and maybe throw in some text in front of each option to indicate the level. Everything else still applies the same. -Jeff On Jul 12, 11:57 am, Nenillo <[EMAIL PROTECTED]> wrote: >

Re: modify select widget

2008-07-13 Thread Jeff FW
I recently had to do something similar. The way I went about it (and I'm not sure this is the best way) is to select all of the categories, then iterate through them and build a tree, using each category's parent_id to figure out where in the tree it fits. Then, once you've got a tree, you have

modify select widget

2008-07-12 Thread Nenillo
Hi, I'm doing an app with a category model. That category model has an autoreference field, to do multiple category levels. I'm using models.ForeignKey('self', null=True, blank=True) for that. The problem is that the select is shown in a plain way and I wan to do something like: Cat1 - Subcat1-