On Tue, Oct 6, 2009 at 7:52 AM, Thomas Steinmaurer <[email protected]>wrote:
>
> Hello,
>
> I have the following model:
>
> [snip]
> class RelationalDatabaseAdmin(admin.ModelAdmin):
> list_display =
>
> ('data_package_id','physical_name','database_instance_name','model_version')
> list_filter = ['model_version']
> search_fields = ['database_instance_name']
>
> admin.site.register(RelationalDatabase, RelationalDatabaseAdmin);
>
>
> then model_version gets displayed in the list, but although list_filter
> is present, a filter box isn't available in the admin area.
>
>
> Is this supposed to work?
>
>
Do you actually have more than one ModelVersion in the DB? If there is only
one possible value for model_version, admin won't display a filter for it.
Karen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---