umm, raw_id_admin takes no effect. I think I have found the problem. As you
said it may be in the model:

Pattern_method model has this entry definition:

    metodos_embebidos =
models.ManyToManyField('Plantilla_metodo_embebido',blank=True,null=True)

and Plantilla_metodo_embebido has more than 100 000 entries.

Could be this the reason to take so much time? I try to use the raw_id but
no time is saved ...



Miguel
Sent from Madrid, Spain

On Wed, Apr 1, 2009 at 6:04 PM, Karen Tracey <kmtra...@gmail.com> wrote:

> On Wed, Apr 1, 2009 at 10:52 AM, Miguel <migue...@gmail.com> wrote:
>
>> I don really understand the raw_id_admin issue. I have read the api but
>> it is still not clear.
>>
>> You meant  I could improve the behaviour by adding this paramter?
>>
>> forma_parte_de =
>> models.ForeignKey('Plantilla_bloque',related_name='dentro_de',blank=True,null=True,
>> raw_ide_admin=true)
>>
>
> You'd need to remove the e in '_ide_' and capitalize True, but that's the
> general idea.
>
>
>> And making the same method call to changemanipulator?
>>
>
> Yes.
>
>
>>
>> should I synchronize the database?
>>
>>
>
> No, this doesn't affect what's stored in the database.  It just affects
> whether the ChangeManipulator needs to go retrieve all rows from the
> 'Plantilla_bloque' table in order to create a Select box with a drop-down
> listing all valid choices.  Depending on how big that table is, this could
> make creating the ChangeManipulator much faster.
>
> Karen
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to