Actually, it seems more complex...  you now have a 2 stage operation
to carry out what should be a relatively(?) simple operation - add a
user with their details.

I have *exactly* the same problem as the original user - is there no
one else who has managed to create a usuable User+Profile admin edit
form?

(Sidebar: Django is all kinds of wonderful, but user management seems
strangely clunky compared to all the other goodness...)

On Oct 13, 1:48?pm, Martin Burger <mburger...@gmail.com> wrote:
> Oh, thanks! Actually, it's much simpler this way.
>
> On Oct 13, 12:29?pm, Jonathan Barratt <jonathan.barr...@knifeict.com>
> wrote:
>
>
>
> > On 13 ?.?. 2010, at 17:19, Martin Burger wrote:
>
> > > Hello,
>
> > > I implemented a user profile that is activated via AUTH_PROFILE_MODULE
> > > in settings.py. In order to be able to view and edit user profiles in
> > > the admin site, I used the method described at
> > >http://stackoverflow.com/questions/3400641/how-do-i-inline-edit-a-dja....
> > > Basically, this method uses a custom ModelAdmin to enable inline
> > > editing.
>
> > > <snip complexities of the new "user" admin section>
> > > How can I enable viewing / editing of user profiles while preserving
> > > the original password functionality?
>
> > The way I'm doing this is just to add 
> > "admin.site.register(models.UserProfile)" to my admin.py
>
> > This makes the user profiles available through the admin section as a 
> > separate entity, like any other model class. It's not in-line editing under 
> > the same section as the basic Django user module, so you do have to create 
> > the user first and then create their profile separately, but it avoids the 
> > problems you're running into and seems like the simplest solution to your 
> > problem to me...
>
> > Others with more Django experience may have a better answer for you though.
>
> > Best wishes,
> > Jonathan

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to