Is there any django command to set a user as moderator?
Something like this:
python manage.py set_moderator --username 'frank'
Something like this:
python manage.py set_moderator --username 'frank'
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
Thanks, I just create a django management command for that.
To enter a block of code:
Comments