First time here? Check out the FAQ!
2

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

Something like this:

python manage.py set_moderator --username 'frank'

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
ant30's avatar
21
ant30
asked 12 years ago

Comments

see more comments

1 Answer

2

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago, updated 12 years ago
link

Comments

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

ant30's avatar ant30 (12 years ago)
see more comments