Changeset be7c915
- Timestamp:
- Dec 12, 2011, 3:40:10 AM (14 years ago)
- Branches:
- master, space-access, stable, stage
- Children:
- 1ffd96e
- Parents:
- 4d6fe00
- git-author:
- Alex Dehnert <adehnert@…> (12/12/11 03:40:10)
- git-committer:
- Alex Dehnert <adehnert@…> (12/12/11 03:40:10)
- Location:
- asadb/groups/migrations
- Files:
-
- 3 edited
-
0006_add_group_perms.py (modified) (1 diff)
-
0014_recognize_nge_perm.py (modified) (1 diff)
-
0016_create_auth_groups.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
asadb/groups/migrations/0006_add_group_perms.py
r2dd6045 rbe7c915 14 14 def forwards(self, orm): 15 15 "Write your forwards methods here." 16 # Create the various contenttypes and permissions and stuff 17 # Otherwise the we'll end with a group without a name 18 # http://groups.google.com/group/south-users/browse_thread/thread/666994cabad1a185?pli=1 19 db.send_pending_create_signals() 20 16 21 # See http://stackoverflow.com/questions/1742021/adding-new-custom-permissions-in-django#answer-6149593 17 22 ct, created = orm['contenttypes.ContentType'].objects.get_or_create(model='group', app_label='groups') # model must be lowercase! -
asadb/groups/migrations/0014_recognize_nge_perm.py
r191ec87 rbe7c915 24 24 def forwards(self, orm): 25 25 "Write your forwards methods here." 26 # Create the various contenttypes and permissions and stuff 27 # Otherwise the permission stuff will fail horribly 28 # http://groups.google.com/group/south-users/browse_thread/thread/666994cabad1a185?pli=1 29 db.send_pending_create_signals() 30 26 31 util.migrations.migrate_perms_forwards(orm, self.new_perms, ) 27 32 util.migrations.migrate_groups_forwards(orm, self.new_auth_groups, ) -
asadb/groups/migrations/0016_create_auth_groups.py
r29a7eca rbe7c915 74 74 75 75 class Migration(DataMigration): 76 77 depends_on = ( 78 ("forms", "0001_initial", ), 79 ) 80 76 81 def forwards(self, orm): 77 82 "Write your forwards methods here." 83 db.send_pending_create_signals() 78 84 util.migrations.migrate_groups_forwards(orm, auth_groups, ) 79 85 user_manager = django.contrib.auth.models.User.objects
Note: See TracChangeset
for help on using the changeset viewer.