Skip to content

Commit

Permalink
[Bug 677962] Add permissions for ImportantDate
Browse files Browse the repository at this point in the history
  • Loading branch information
tgavankar committed Aug 17, 2011
1 parent 55cd150 commit 463153c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions migrations/121-importantdate-permissions.sql
@@ -0,0 +1,9 @@
INSERT INTO django_content_type (`name`, `app_label`, `model`) VALUES
('important date', 'wiki', 'importantdate');

SET @ct = LAST_INSERT_ID();

INSERT INTO auth_permission (`name`, `content_type_id`, `codename`) VALUES
('Can add important dates', @ct, 'add_importantdate'),
('Can change important dates', @ct, 'change_importantdate'),
('Can delete important dates', @ct, 'delete_importantdate');

0 comments on commit 463153c

Please sign in to comment.