Ask Your Question
2

Is there any django command to set a user as moderator?

asked 2012-08-07 07:44:10 -0500

ant30 gravatar image ant30
21 1 3

Something like this:

python manage.py set_moderator --username 'frank'

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-08-07 08:11:11 -0500

Evgeny gravatar image Evgeny flag of Chile
11059 50 84 182
http://askbot.org/

updated 2012-08-07 08:12:07 -0500

We don't have it at the moment, but it would be very easy to create.

We have add_admin and remove_admin, but probably it would have more sense to have a more general set_user_status.

Take a look at askbot/management/commands/add_admin.py

link publish delete flag offensive edit

Comments

Thanks, I just create a django management command for that.

ant30 ( 2012-08-08 02:16:53 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: 2012-08-07 07:44:10 -0500

Seen: 30 times

Last updated: Aug 07 '12