Ask Your Question

How can I change Askbot so it sends Feedback emails to superusers but not staff?

asked 2012-10-31 12:55:32 -0500

siovene's avatar

updated 2012-10-31 13:17:56 -0500

The title says it all. Django has a superuser and staff role, in contrib.auth.models.User.

In my other app (running on the same db), I have some staff member because I need them to access a certain admin page, but I don't want them to receive Askbot's feedback emails :)

edit retag flag offensive close merge delete


What is the difference between admins and staff? Not sure.

Evgeny's avatar Evgeny  ( 2012-10-31 13:35:57 -0500 )edit

A superuser is one who can do EVERYTHING, had all permissions by default. A staff member can access to the admin site, but can only do things he has permissions for (see permissions in contrib.auth.User)

siovene's avatar siovene  ( 2012-10-31 13:47:40 -0500 )edit

Right now moderators (User.status = 'm' as you found) and administrators receive feedback by design. We did not make distinction between staff and the admin in askbot.

Evgeny's avatar Evgeny  ( 2012-10-31 14:06:50 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-10-31 13:49:18 -0500

siovene's avatar

I've found out how. Feedback emails are emailed to "moderators", in askbot/mail/

Moderators are those with status == 'm' in in contrib.auth.models.User (ah, so this is how Askbot monkey patches User :-)).

I just needed to change that to 'a' (approved) and the problem went away.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-10-31 12:55:32 -0500

Seen: 315 times

Last updated: Oct 31 '12