Closed Bug 1046745 Opened 12 years ago Closed 12 years ago

[Mozillians] Run python shell cmds to update content types and permissions

Categories

(Infrastructure & Operations Graveyard :: WebOps: Engagement, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: giorgos, Assigned: cturra)

References

Details

(Whiteboard: [kanban:https://kanbanize.com/ctrl_board/4/659] )

We want to run the following commands on mozillians.org (production) admin node: 1. Get a python shell: ./manage.py shell 2. Run the following commands in the python shell: ### start from django.contrib.contenttypes.management import update_contenttypes from django.contrib.auth.management import create_permissions from django.db.models import get_models, get_app app = get_app('users') update_contenttypes(app, get_models('users.Vouch'), verbosity=2) create_permissions(app, get_models('users.Vouch'), verbosity=2) ### end Commands also in pastebin http://pastebin.mozilla.org/5730902 for convenience. 3. Paste the output here Thanks!
Whiteboard: [kanban:https://kanbanize.com/ctrl_board/4/659]
(In reply to Giorgos Logiotatidis [:giorgos] from comment #0) > > 3. Paste the output here done as requested. >>> from django.contrib.contenttypes.management import update_contenttypes >>> from django.contrib.auth.management import create_permissions >>> from django.db.models import get_models, get_app >>> app = get_app('users') >>> update_contenttypes(app, get_models('users.Vouch'), verbosity=2) Adding content type 'users | vouch' >>> create_permissions(app, get_models('users.Vouch'), verbosity=2) Adding permission 'users | vouch | Can add vouch' Adding permission 'users | vouch | Can change vouch' Adding permission 'users | vouch | Can delete vouch' >>> quit()
Assignee: server-ops-webops → cturra
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Thanks cturra, I can see the permissions in admin on prod now.
Status: RESOLVED → VERIFIED
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.