I don't know about the rest part, but for admin I'd try to use raw_id_fields, 
that doesn't fetch the whole Unicode/str representation for all elements the 
foreign key could point to. Do you have some complex code in __unicode__ or 
__str__?

Raw Id documentation:
ModelAdmin.raw_id_fields¶
By default, Django’s admin uses a select-box interface (<select>) for fields 
that are ForeignKey. Sometimes you don’t want to incur the overhead of having 
to select all the related instances to display in the drop-down.

raw_id_fields is a list of fields you would like to change into an Input widget 
for either a ForeignKey orManyToManyField:


Best regards
Joseph




Von meinem iPhone gesendet
> Am 14.11.2015 um 08:14 schrieb Joakim Hove <joakim.h...@gmail.com>:
> 
> knees?
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/F6D8DE95-7B3E-47C8-BEC4-661A33F90489%40kde.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to