Re: Many to many ajax widget for admin

2010-08-02 Thread Carlos Ricardo Santos
Already tried to find a better approach without success, raw_id is now the best option. On 2 August 2010 10:54, Sævar Öfjörð wrote: > If someone is interested, > I just used raw_id_fields in my intermediary inline modeladmin. > > class AuthorshipInline(admin.TabularInline): >raw_id_fields =

Re: Many to many ajax widget for admin

2010-08-02 Thread Sævar Öfjörð
If someone is interested, I just used raw_id_fields in my intermediary inline modeladmin. class AuthorshipInline(admin.TabularInline): raw_id_fields = ('author',) This isn't exactly what I was going for, but it takes the really big select fields out of the picture. - Sævar On Jul 27, 5:24 a

Re: Many to many ajax widget for admin

2010-07-26 Thread ringemup
You might want to check out grappelli and its Related Lookups feature: http://code.google.com/p/django-grappelli/ On Jul 26, 4:30 pm, Sævar Öfjörð wrote: > Hi > > I have some models (Song and Author) that are related through an > intermediary model (Authorship) like this: > > class Song(models

Many to many ajax widget for admin

2010-07-26 Thread Sævar Öfjörð
Hi I have some models (Song and Author) that are related through an intermediary model (Authorship) like this: class Song(models.Model) authors = models.ManyToManyField('Author', through='Authorship') class Author(models.Model) name = models.CharField(max_length=255) class Authorship(mo

Re: JQuery Ajax Widget for multiple and simple select

2008-06-05 Thread brooks
You might check this out. I think it would get you part-way there. http://marinho.webdoisonline.com/blog/p/153/ -- Brooks On Jun 4, 2:40 pm, "Juanjo Conti" <[EMAIL PROTECTED]> wrote: > I am trying to implement an ajax-widget with JQuery to handle simple > and multipl

JQuery Ajax Widget for multiple and simple select

2008-06-04 Thread Juanjo Conti
I am trying to implement an ajax-widget with JQuery to handle simple and multiple select that retrives options that match what the user has typed. Is there something of this all ready done out there? I'd like to see it. Thanks, -- Juanjo

Re: Ajax widget

2008-01-21 Thread omar-tick
Hi Mike I have the same problem, and I don't know how to resolve, I'm newbie in django and I'm trying to understand how to create templatetags for resolve this because is very important for me. Have you the solution?? If I get, I say to you too. THX On 4 Gen, 20:13, mike <[EMAIL PROTECTED]> wrote

Re: Ajax widget

2008-01-04 Thread mike
Malcolm thanks for the reply, The javascript code above was working i was just unable to implement it into my template input box. I will try as you suggest. On Jan 4, 10:59 am, Empty <[EMAIL PROTECTED]> wrote: > So I'm really confused. You asked this same question on > 12/14:http://groups.goog

Re: Ajax widget

2008-01-04 Thread Empty
So I'm really confused. You asked this same question on 12/14: http://groups.google.com/group/django-users/browse_frm/thread/3415d1b0bf21cf7a/c26747fb42ae3b24?lnk=st&q=AJAXWidgetComboBox#c26747fb42ae3b24 The original author of the Wiki page that you're referring to responded. The code is a year

Re: Ajax widget

2008-01-04 Thread mike
thx for the reply malcolm, I am trying to implement the Dojo select box into one of my forms, I followed the instructions and i know the javascript is working because I can get results by using the query string in my browser, http://localhost:8000/myapp/reporter_lookup/?q= returns results, The

Re: Ajax widget

2008-01-03 Thread Malcolm Tredinnick
On Thu, 2008-01-03 at 15:25 -0800, mike wrote: > I am trying to implement the Dojo Select box into a template I am > creating. > I have used the formtags that is inluded in the nongselect tar > package. but It seems with the development version of django the > import > statements {% load formta

Ajax widget

2008-01-03 Thread mike
I am trying to implement the Dojo Select box into a template I am creating. I have used the formtags that is inluded in the nongselect tar package. but It seems with the development version of django the import statements {% load formtags %} no longer work, I need a way to replace the {% sel