Re: Show labels next to ManyToMany raw_id_fields

2016-03-03 Thread Tim Graham
ticket is: https://code.djangoproject.com/ticket/26313 On Tuesday, February 17, 2009 at 4:52:25 PM UTC-5, Alex Gaynor wrote: > > > > On Tue, Feb 17, 2009 at 4:50 PM, João Olavo Baião de Vasconcelos < > joao...@gmail.com > wrote: > >> On Tue, Feb 17, 2009 at 5:15 PM, Alex Gaynor > > wrote: >> >>> S

Re: raw_id_fields: How to show a name instead of id?

2015-08-07 Thread विश्वासराव साळुंखे
jango Admin panel, I'm using raw_id_fields > <https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.raw_id_fields> > to > select a ForeignKey from a Model which has thousands of elements, because > the default select-box drop-down is

help with list_editable and raw_id_fields

2015-08-04 Thread Marcela Campo
Hi eveyone, I am having issues with list_editable and raw_id_fields. I am adding one field to both attributes like this lass LocationDataReview(admin.ModelAdmin): list_display = ('country', 'state', 'city', 'area','location') list_edita

Re: django 1.6.1 raw_id_fields open a 'change' popup instead of 'select' popup

2014-03-05 Thread Vittorio
> these inlines I defined a raw_id_fields referring to the 'items' model which > is showing correctly in the form, BUT ... when I click on it a "change" > page is often (not always) popping up instead of the expected "select" one. > Tis happens both in d

Re: django 1.6.1 raw_id_fields open a 'change' popup instead of 'select' popup

2014-03-04 Thread Camilo Torres
On Tuesday, March 4, 2014 4:47:58 AM UTC-4:30, Vittorio wrote: > > In an admin form I input all data for a specific invoice (client, date of > issue, number of invoice) and, by means of inlines, the ordered items. In > these inlines I defined a raw_id_fields referring to the &

django 1.6.1 raw_id_fields open a 'change' popup instead of 'select' popup

2014-03-04 Thread Vittorio
del 'invoice' and a model 'items'. I use the admin interface only. In an admin form I input all data for a specific invoice (client, date of issue, number of invoice) and, by means of inlines, the ordered items. In these inlines I defined a raw_id_fields referring to the '

Make a raw_id_fields input textbox wider

2013-05-29 Thread Victor
*SORRY My previous message was incomplete *** I'm trying to make the input textbox of a raw_id_fields wider than the default size but without success. Here is what I tried ('codarticolo' is the raw_id_fields): admin.py . class MovimentomagInline(admi

Make a raw_id_fields input textbox wider

2013-05-29 Thread Victor
I'm trying to make the input textbox of a raw_id_fields wider than the default size but without success. Here is what I tried ('codarticolo' is the raw_id_fields): admin.py . class MovimentomagInline(admin.TabularInline): formfield_overrides = { m

Re: raw_id_fields admin widget not showing search icon

2013-05-16 Thread Adrián López Calvo
>>> class UserManagedGroupAdmin(admin.ModelAdmin): >>> inlines = [MembershipInline] >>> search_fields = ('name', 'leader__username', ) >>> list_display = ('__unicode__', 'leader', ) >>> filter_ho

Re: raw_id_fields admin widget not showing search icon

2013-05-16 Thread Adrián López Calvo
n): >> inlines = [MembershipInline] >> search_fields = ('name', 'leader__username', ) >> list_display = ('__unicode__', 'leader', ) >> filter_horizontal = ('permissions', ) >>

Re: raw_id_fields admin widget not showing search icon

2013-05-15 Thread Russell Keith-Magee
inlines = [MembershipInline] > search_fields = ('name', 'leader__username', ) > list_display = ('__unicode__', 'leader', ) > filter_horizontal = ('permissions', ) > raw_id_fields = ('leader', ) > &

raw_id_fields admin widget not showing search icon

2013-05-15 Thread Adrián López Calvo
= ('__unicode__', 'leader', ) filter_horizontal = ('permissions', ) raw_id_fields = ('leader', ) admin.site.register(UserManagedGroup, UserManagedGroupAdmin) The magnifying glass icon for searching doesn't appear in the admin page. Attatched image

Re: raw_id_fields

2013-03-05 Thread Almudena Vila Forcén
I have the same problem, I want to show the real name instead the id. Do you solve it? Thank you very much El miércoles, 30 de enero de 2013 17:20:06 UTC+1, rdollinger escribió: > > Hi everybody, > > I have a m2m relation where in my AdminForm I would use raw_id_fields inste

Re: raw_id_fields

2013-03-05 Thread Almudena Vila Forcén
I have the same problem, I want to show the real name instead the id. Do you solve it? Thank you very much El miércoles, 30 de enero de 2013 17:20:06 UTC+1, rdollinger escribió: > > Hi everybody, > > I have a m2m relation where in my AdminForm I would use raw_id_fields inste

raw_id_fields: How to show a name instead of id?

2013-03-05 Thread Almudena Vila Forcén
Customizing a Django Admin panel, I'm using raw_id_fields<https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.raw_id_fields> to select a ForeignKey from a Model which has thousands of elements, because the default select-box drop-down is inconv

raw_id_fields

2013-01-30 Thread Robert Dollinger
Hi everybody, I have a m2m relation where in my AdminForm I would use raw_id_fields instead of the filter_horizontal option. For explanation I prefer the raw_id_fields instead of the filter_horizontal option, because there records are already categorized. So in the popup-window the user has

Content type raw_id_fields

2012-04-20 Thread dobrysmak
Hi, i have got a question, been figthing with this pass few days. How to make raw_id_fields in content type model in admin backend? Or how to display formset for picked content type in inline forms? Cheers! -- You received this message because you are subscribed to the Google Groups "D

raw_id_fields and additional attributes

2011-05-26 Thread javatina
Please, need help: if I specify raw_id_fields like in raw_id_fields = ('resources',) in respective admin.py, how can I specify additional attributes of the related admin form? For example, how to change the label? Usually this can be done with something like this (I use below as just

Re: django raw_id_fields patch

2011-05-25 Thread Ernesto Guevara
I need change the FK id value in raw_id to Thanks! 2011/5/25 epic2005 > who have the raw_id_fields patch url.. or some sugguest for modify > raw_id_fields pop id back in the textbox , please give me , thanks a > lot. > > -- > You received this message because you are

django raw_id_fields patch

2011-05-25 Thread epic2005
who have the raw_id_fields patch url.. or some sugguest for modify raw_id_fields pop id back in the textbox , please give me , thanks a lot. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: error with limit_choices_to with complex queries (Q object) and raw_id_fields

2009-10-13 Thread Russell Keith-Magee
gt; and in admin.py : > > class SecondaryGroupAdmin(admin.ModelAdmin): >   form = SecondaryGroupAdminForm >   list_display = ('idUser','idGroup') >   raw_id_fields = ('idUser','idGroup',) > > and I obtain this error in Admin edit form : >

error with limit_choices_to with complex queries (Q object) and raw_id_fields

2009-10-13 Thread fsaintma
27;)) idUser = models.ForeignKey(User,db_column = 'idUser',verbose_name = 'Utilisateur',limit_choices_to = Q(state='valid') | Q(state='modify')) and in admin.py : class SecondaryGroupAdmin(admin.ModelAdmin): form = SecondaryGroupAdminForm list_displ

Re: raw_id_fields in admin

2009-09-06 Thread paulhide
Thanks very much Karen, I'll keep an eye on the ticket. Paul On Sep 6, 2:00 pm, Karen Tracey wrote: > On Sun, Sep 6, 2009 at 7:25 AM, paulh wrote: > > > When using one of these fields in Add mode you make a choice of the > > object from a popup window and the js returns the id into the field.

Re: raw_id_fields in admin

2009-09-06 Thread Karen Tracey
On Sun, Sep 6, 2009 at 7:25 AM, paulh wrote: > > When using one of these fields in Add mode you make a choice of the > object from a popup window and the js returns the id into the field. > It would be very useful if it also tacked the unicode (that you see > whilst making the choice) correspondi

raw_id_fields in admin

2009-09-06 Thread paulh
When using one of these fields in Add mode you make a choice of the object from a popup window and the js returns the id into the field. It would be very useful if it also tacked the unicode (that you see whilst making the choice) corresponding to that id onto the end of the field as it does when

Re: raw_id_fields, get atribute name and number, how to?

2009-07-17 Thread onoxo
to make it simple, i have this in models.py class Photo(models.Model): title_hr = models.CharField('(hr)', max_length=255) title_en = models.CharField('(en)', max_length=255) img = FileBrowseField(max_length=200, initial_directory="",...) class PhotoSetPhotoItem(models.Model): or

raw_id_fields, get atribute name and number, how to?

2009-07-16 Thread onoxo
I'm using raw_id_fields in admin.py the question, how could i get the Poll question atribute and the number in admin? number is ok but it would be better if i could get more info than that... can i create a new class atribute in models.py and refer to Poll class? something like this: tem

Re: Show labels next to ManyToMany raw_id_fields

2009-02-17 Thread Alex Gaynor
On Tue, Feb 17, 2009 at 4:50 PM, João Olavo Baião de Vasconcelos < joaool...@gmail.com> wrote: > On Tue, Feb 17, 2009 at 5:15 PM, Alex Gaynor wrote: > >> Sure, what you're doing will be similar to the way it works for a foreign >> key, but you're dealing with multiple values, so it'll be something

Re: Show labels next to ManyToMany raw_id_fields

2009-02-17 Thread João Olavo Baião de Vasconcelos
On Tue, Feb 17, 2009 at 5:15 PM, Alex Gaynor wrote: > Sure, what you're doing will be similar to the way it works for a foreign > key, but you're dealing with multiple values, so it'll be something like > this: > http://dpaste.com/121833/ > You'll need to test this out to make sure it works, but

Re: Show labels next to ManyToMany raw_id_fields

2009-02-17 Thread Alex Gaynor
On Tue, Feb 17, 2009 at 1:54 PM, João Olavo Baião de Vasconcelos < joaool...@gmail.com> wrote: > On Tue, Feb 17, 2009 at 11:47 AM, Alex Gaynor wrote: > >> I think value is a list in that case, of the primary keys, but the best >> way to find out is through expirementation, have that method return

Re: Show labels next to ManyToMany raw_id_fields

2009-02-17 Thread João Olavo Baião de Vasconcelos
On Tue, Feb 17, 2009 at 11:47 AM, Alex Gaynor wrote: > I think value is a list in that case, of the primary keys, but the best way > to find out is through expirementation, have that method return nothing but > a string representation of value and look at that page, or use some other > form of lo

Re: Show labels next to ManyToMany raw_id_fields

2009-02-17 Thread João Olavo Baião de Vasconcelos
On Tue, Feb 17, 2009 at 11:47 AM, Alex Gaynor wrote: > I think value is a list in that case, of the primary keys, but the best way > to find out is through expirementation, have that method return nothing but > a string representation of value and look at that page, or use some other > form of lo

Re: Show labels next to ManyToMany raw_id_fields

2009-02-17 Thread Alex Gaynor
On Tue, Feb 17, 2009 at 9:44 AM, João Olavo Baião de Vasconcelos < joaool...@gmail.com> wrote: > Hello all, > > when I save an object that has a ForeignKey raw_id_field, it shows the > label (Unicode representation) of the related object next to the field, > instead of just the field with object's

Show labels next to ManyToMany raw_id_fields

2009-02-17 Thread João Olavo Baião de Vasconcelos
Hello all, when I save an object that has a ForeignKey raw_id_field, it shows the label (Unicode representation) of the related object next to the field, instead of just the field with object's PK. I'd like to do the same thing with a ManyToMany raw_id_field (for now, just the objects' PK appear)

Re: Using raw_id_fields with a many-to-many field

2008-10-29 Thread Brian Rosner
: > model = Membership > raw_id_fields = ('person',) > extra = 1 > > class PersonAdmin(admin.ModelAdmin): > # ... add other features > inlines = (MembershipInline,) > admin.site.register(Person, PersonAdmin) The MembershipI

Re: Using raw_id_fields with a many-to-many field

2008-10-29 Thread AndrewD
I have a ManyToMany field that works as a raw_id_fields item. It is an intermediary ManyToMany model class using the through='ClassName' feature. The admin.py shows that ManyToMany model using an Inline admin class. The Inline class has the raw_id_fields and extras attributes. Here is

Re: Using raw_id_fields with a many-to-many field

2008-10-10 Thread Karen Tracey
On Thu, Oct 9, 2008 at 5:59 PM, Hancock, David (dhancock) < [EMAIL PROTECTED]> wrote: > I've found that using raw_id_fields saves a lot of time for our users > over loading an entire many-to-many select. (But for shorter lists, the > many-to-many widget is by far the best int

Using raw_id_fields with a many-to-many field

2008-10-09 Thread Hancock, David (dhancock)
I've found that using raw_id_fields saves a lot of time for our users over loading an entire many-to-many select. (But for shorter lists, the many-to-many widget is by far the best interface I've seen for multiple selections.) There's an aspect of the raw_id_fields (this is in the

Re: newforms-admin: raw_id_fields works for admin area but not my site

2008-03-28 Thread hotani
nd it would display a > > text field in both places. Now it only seems to work on the admin > > side. > > > here's a chopped version of the model definition: > > --- > > class Issue(models.Model): > >     > >    hardware_item

Re: newforms-admin raw_id_fields performance problem

2007-10-09 Thread Joseph Kocherhans
On 10/9/07, Brian Rosner <[EMAIL PROTECTED]> wrote: > > On 2007-10-09 14:39:57 -0600, "Joseph Kocherhans" <[EMAIL PROTECTED]> said: > > > > > On 10/9/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > >> > >> This raises some alarm bells. Why on earth are we futzing around in > >> ChangeManipulat

Re: newforms-admin raw_id_fields performance problem

2007-10-09 Thread Karen Tracey
tances of these models are commonly edited inline on the change page for a different model. Bringing up a change or add page for that model had the same performance issue until I realized that I needed to specify the raw_id_fields in the "inline" admin class as well. Which makes perf

Re: newforms-admin raw_id_fields performance problem

2007-10-09 Thread Brian Rosner
On 2007-10-09 14:39:57 -0600, "Joseph Kocherhans" <[EMAIL PROTECTED]> said: > > On 10/9/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: >> >> This raises some alarm bells. Why on earth are we futzing around in >> ChangeManipulators here? They are entirely oldforms-related and the >> whole poi

Re: newforms-admin raw_id_fields performance problem

2007-10-09 Thread Joseph Kocherhans
On 10/9/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > This raises some alarm bells. Why on earth are we futzing around in > ChangeManipulators here? They are entirely oldforms-related and the > whole point is to remove any reliance on them. > > This might well be a bug and in an area that

Re: newforms-admin raw_id_fields performance problem

2007-10-09 Thread Malcolm Tredinnick
On Tue, 2007-10-09 at 15:56 -0400, Karen Tracey wrote: > I tried out the newforms-admin branch for my app today. The > conversion went fine, except for a performance problem with the new > raw_id_fields. As background, I have a model with two ForeignKey > fields (among other

newforms-admin raw_id_fields performance problem

2007-10-09 Thread Karen Tracey
I tried out the newforms-admin branch for my app today. The conversion went fine, except for a performance problem with the new raw_id_fields. As background, I have a model with two ForeignKey fields (among other stuff). The number of choices for those ForeignKey fields is high (over