Re: How to list_filter by a foreign key field not returned by the model's __unicode__?

2009-04-25 Thread TiNo
On Sat, Apr 25, 2009 at 10:34 PM, kspr wrote: > # This is what I want: (admin.py) > class DoctorAdmin(admin.ModelAdmin): >list_filter = ['origin.country'] > shouldn't it be: list_filter = ['origin__country'] TiNo --~--~-~--~~~---~--~~

How to list_filter by a foreign key field not returned by the model's __unicode__?

2009-04-25 Thread kspr
Hi Djangoers! I'm making a database system which holds information about doctors and what universities they got their degree from. It consists of two models, Doctor and Origin. In Doctor, I make a field, origin, which is a ForeignKey to Origin, surprisingly :-) The Origin model has a name of

How to list_filter by a foreign key field not returned by the model's __unicode__?

2009-04-25 Thread kspr
Hi Djangoers! I'm making a database system which holds information about doctors and what universities they got their degree from. It consists of two models, Doctor and Origin. In Doctor, I make a field, origin, which is a ForeignKey to Origin, surprisingly :-) The Origin model has a name of