Hi,

I am not sure the admin is designed for handling so many entries in a foreign 
key.
When you try to display Priority, you'll have a combo box with 200.000 entries 
which will takes a lot of time to get computed especially if you want to 
display entries information in the string representation.
Even if the admin interface would render it, you'll suffer a really poor user 
experience.

Maybe you could describe what you are trying to achieve in order to get the 
right way to do it ?

Regards,
Xavier.

Le 12 janv. 2011 à 06:27, gupta-django a écrit :

> I have two application
> 
> 1. App1 - It has a Model Class "Entry" that has 200000 entries
> 2. App2 - It has a Model Class "Priority"
> 
> In Priority class I am defining a Foreign Key Relationship as
> 
> from App1.models import Entry
> 
> class Priority(models.Model):
>    entry = models.ForeignKey(Entry)
>    priority = models.CharField(max_length=2)
> 
> And in App2/admin.py I am simply registering Priority
> 
> admin.site.register(Priority)
> 
> But on Admin website when I try to add a priority - the control hangs
> up and only a blank page is returned after a long time gap.
> 
> Can anyone please look into the issue that why it is not letting me
> add priorities through Admin? I am able to add from backend,
> 
> Thanks
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@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.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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