The additional problem with "is_staff" has been solved.

I created an OverridenUserAdmin(UserAdmin):
   """ This class overrides the default UserAdmin model """
   def save_model(self, request, obj, form, change):
       """ Overrides the value of is_staff by saving this model """
       obj.is_staff = obj.is_superuser
       obj.save()

admin.site.unregister(User)
admin.site.register(User, OverridenUserAdmin)



On Jun 14, 1:59 pm, stanleyxu2005 <sx.a...@googlemail.com> wrote:
> Hi All,
>
> I have some problems with the integrated user profile module.
>
> When a user profile is going to be created, there are three buttons
> below: "Save and add another", "Save and continue" and "Save".
>
> But no matter which button I click, it will always enter the user
> profile page. (I am not sure, if this is a bug of django module.)
>
> What I want to do is just hide the other two buttons: "Save and add
> another" and "Save and continue".
>
> Is it possible to hide these two buttons?
>
> BTW: Is it possible to hide the "is_staff" field in user profile page,
> but leave this option with the same value as "is_superuser"?
>
> Best regards

-- 
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