Skip to content

Commit

Permalink
[bug 589257] Content type and permissions for wiki models
Browse files Browse the repository at this point in the history
  • Loading branch information
rlr authored and James Socol committed Aug 26, 2010
1 parent 82aefe1 commit ab68a83
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions migrations/33-wiki-permissions.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
INSERT INTO django_content_type (name, app_label, model) VALUES ('document', 'wiki', 'document');
SET @ct = (SELECT LAST_INSERT_ID());
INSERT INTO auth_permission (name, content_type_id, codename) VALUES ('Can add document', @ct, 'add_document'),
('Can change document', @ct, 'change_document'),
('Can delete document', @ct, 'delete_document');

INSERT INTO django_content_type (name, app_label, model) VALUES ('revision', 'wiki', 'revision');
SET @ct = (SELECT LAST_INSERT_ID());
INSERT INTO auth_permission (name, content_type_id, codename) VALUES ('Can add revision', @ct, 'add_revision'),
('Can change revision', @ct, 'change_revision'),
('Can delete revision', @ct, 'delete_revision');

0 comments on commit ab68a83

Please sign in to comment.