Re: How to use Admin modules in my application

2007-07-08 Thread Angela Sutanto
On 7/8/07, Doug B <[EMAIL PROTECTED]> wrote: > As tempting as the pretty admin interface > might be, I think you would be better off rolling your own form and > view for end users. Then you have complete control. Using the > form_for_* functions you could have the whole thing done in a few > m

How to use Admin modules in my application

2007-07-07 Thread Angela Sutanto
Hi everybody, I'd like to take advantage of Admin modules to edit some my models e.g. user profile by navigating user to /admin/myapp/// to open change form. 1. I should check, whether is the same as request.user.id to prevent user from editing a foreign user record. But I don't know how to

Re: Admin module, user account editing and group assignment info

2007-07-05 Thread Angela Sutanto
On 7/4/07, Chris Brand <[EMAIL PROTECTED]> wrote: > If you go to edit that same user in the Admin, the group should be selected > in that same multiselect box. > > It's as simple as that. Aha - it did not occur me. I was looking for some gadget proof against an accidental (re)selection. This sol

Admin module, editing user account + user profile in the same page

2007-07-04 Thread Angela Sutanto
Hi once more question concerning Admin module customization: What is a recommended way of customization to achieve a single page editor to edit choosen fields from standard user accouny and fields from my user profile? Using parameter edit_iniline in OneToOne fields includes fields of my profile

Admin module, user account editing and group assignment info

2007-07-04 Thread Angela Sutanto
Hi, I'm learning Django and trying to use/customize Admin module but I cannot find information about group(s) a user is assigned to. If I open page to edit user's account, at the bottom is multiselect box containing all existing groups. If I select one(s) and save user profile, in DB table au