Re: Limiting the entry that loaded in django admin.
On 04/12/2012, at 12:13 PM, bolang wrote:
> Hi all,
> need some input here.
>
> I have a site with > 15000 images, using django photologue.
>
> When we create a Post (that has Images field in it) from django admin,
> all of the images will be loaded in a dropdown.
>
> Before this, it was not create any problem.
> Now, after the number of images getting bigger, big chance we got timeout when try
> to create/edit Post.
>
> I think it is possible to limit the loaded images (although i don't know how to do it).
> But, which images that should be loaded?
>
> Any advice?
>
Try using raw_id_fields:
https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.raw_id_fields
Cheers, Andrew.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home