Permalink
Browse files

[Bug 677962] Add permissions for ImportantDate

  • Loading branch information...
1 parent 55cd150 commit 463153cbc6d56ed3251a71cdb3efbd2b9ecccdd9 @tgavankar tgavankar committed Aug 10, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 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.