forked from fwenzel/kitsune
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bug 589257] Content type and permissions for wiki models
- Loading branch information
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); |