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
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
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
> 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
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 &
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 '
*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
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
>>> class UserManagedGroupAdmin(admin.ModelAdmin):
>>> inlines = [MembershipInline]
>>> search_fields = ('name', 'leader__username', )
>>> list_display = ('__unicode__', 'leader', )
>>> filter_ho
n):
>> inlines = [MembershipInline]
>> search_fields = ('name', 'leader__username', )
>> list_display = ('__unicode__', 'leader', )
>> filter_horizontal = ('permissions', )
>>
inlines = [MembershipInline]
> search_fields = ('name', 'leader__username', )
> list_display = ('__unicode__', 'leader', )
> filter_horizontal = ('permissions', )
> raw_id_fields = ('leader', )
>
&
= ('__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
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
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
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
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
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
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
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
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
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 :
>
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
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.
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
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
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
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
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
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
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
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
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
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
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)
:
> model = Membership
> raw_id_fields = ('person',)
> extra = 1
>
> class PersonAdmin(admin.ModelAdmin):
> # ... add other features
> inlines = (MembershipInline,)
> admin.site.register(Person, PersonAdmin)
The MembershipI
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
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
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
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
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
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
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
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
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
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
45 matches
Mail list logo