[PATCH] Embellish admin model change lists
Jeremy Kerr
jk at ozlabs.org
Fri Feb 11 12:55:03 EST 2011
Hi Dirk,
> Add fields to the admin change list pages of patchwork models, and add
> filters and search boxes where appropriate.
Applied, with one change:
> class UserProfileAdmin(admin.ModelAdmin):
> - pass
> + search_fields = ('user__first_name', 'user__last_name')
I've added user__username to this list, as I often need to lookup by username
too.
Cheers,
Jeremy
More information about the Patchwork
mailing list