Re: Can I overwrite the ModelAdmin for User

2009-02-17 Thread Kevin Audleman
Hey, that's great! I did indeed discover that the change password page didn't work but didn't know what to do about it. Thanks for your excellent and thorough help =) Kevin On Feb 16, 6:30 pm, Karen Tracey wrote: > On Mon, Feb 16, 2009 at 8:19 PM, Kevin Audleman >

Re: Can I overwrite the ModelAdmin for User

2009-02-16 Thread Karen Tracey
On Mon, Feb 16, 2009 at 8:19 PM, Kevin Audleman wrote: > > Alex, > > I managed to get it to work, and the column is even sortable! Thanks > for your help. > > Here's my code for reference for anyone else who comes across this > post: > > class

Re: Can I overwrite the ModelAdmin for User

2009-02-16 Thread Kevin Audleman
Alex, I managed to get it to work, and the column is even sortable! Thanks for your help. Here's my code for reference for anyone else who comes across this post: class UserAdmin(admin.ModelAdmin): def display_profile_status(self, obj): profile = obj.myprofile_set.all() if

Re: Can I overwrite the ModelAdmin for User

2009-02-16 Thread Alex Gaynor
On Mon, Feb 16, 2009 at 7:13 PM, Kevin Audleman wrote: > > Alex, > > I feel like I'm one step closer to getting this to work. From the > documentation you sent my way, it seems like what I would do would be > to create a method on the User object which will span the

Re: Can I overwrite the ModelAdmin for User

2009-02-16 Thread Kevin Audleman
Alex, I feel like I'm one step closer to getting this to work. From the documentation you sent my way, it seems like what I would do would be to create a method on the User object which will span the relationship and grab the value:, def get_payment_status(self): return

Re: Can I overwrite the ModelAdmin for User

2009-02-16 Thread Alex Gaynor
On Mon, Feb 16, 2009 at 6:59 PM, Kevin Audleman wrote: > > Thanks! > > I've got my new User display going and another question has come up. > In the related MyProfile object, I've got a field called > payment_status. It's important for my client to be able to quickly >

Re: Can I overwrite the ModelAdmin for User

2009-02-16 Thread Kevin Audleman
Thanks! I've got my new User display going and another question has come up. In the related MyProfile object, I've got a field called payment_status. It's important for my client to be able to quickly view a list of users with a payment_status of 'Unpaid.' Is there a way to add a related field

Re: Can I overwrite the ModelAdmin for User

2009-02-16 Thread Alex Gaynor
On Mon, Feb 16, 2009 at 6:27 PM, Kevin Audleman wrote: > > I've created a custom profile per the instructions in chapter 12 of > the book to give my user's fields like address1, address2, etc. > Currently when I log in to the admin and want to update a user, I have > to

Can I overwrite the ModelAdmin for User

2009-02-16 Thread Kevin Audleman
I've created a custom profile per the instructions in chapter 12 of the book to give my user's fields like address1, address2, etc. Currently when I log in to the admin and want to update a user, I have to go to two separate pages: the User page to update core user fields, and the Profile page to