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
--~--~-~--~~~---~--~~
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
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
3 matches
Mail list logo