Re: raw_id_fields admin widget not showing search icon

2013-05-16 Thread Adrián López Calvo
Nevermind, adding this to the ModelAdmin of my User proxy made the deal. Or so it seems. def get_model_perms(self, request): return {} Thanks again, Adrián On Thursday, May 16, 2013 4:22:43 PM UTC+2, Adrián López Calvo wrote: > > That was it, thank you Russell. > > Any way to register

Re: raw_id_fields admin widget not showing search icon

2013-05-16 Thread Adrián López Calvo
That was it, thank you Russell. Any way to register that model exclusively for this functionality, without showing its page in the main menu? It's only a proxy of User so the information is completely redundant... On Thursday, May 16, 2013 6:25:02 AM UTC+2, Russell Keith-Magee wrote: > > > >

Re: raw_id_fields admin widget not showing search icon

2013-05-15 Thread Russell Keith-Magee
On Thu, May 16, 2013 at 6:34 AM, Adrián López Calvo < adrianlopezca...@gmail.com> wrote: > > > Hello, > > I have the following code in my admin.py: > > class UserManagedGroupAdmin(admin.ModelAdmin): > inlines = [MembershipInline] >

raw_id_fields admin widget not showing search icon

2013-05-15 Thread Adrián López Calvo
Hello, I have the following code in my admin.py: class UserManagedGroupAdmin(admin.ModelAdmin): inlines = [MembershipInline] search_fields = ('name', 'leader__username', ) list_display = ('__unicode__', 'leader', )