-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Public user project roles are not create with new project
- Loading branch information
1 parent
1c93912
commit d2d4e19
Showing
3 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
cadasta/organization/migrations/0004_remove_Pb_project_roles.py
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,22 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.10.7 on 2017-05-19 08:14 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations | ||
|
||
|
||
def remove_public_user_role(apps, schema_editor): | ||
ProjectRole = apps.get_model("organization", "ProjectRole") | ||
ProjectRole.objects.filter(role='Pb').delete() | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('organization', '0003_add_organizationrole_unique'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython( | ||
remove_public_user_role, migrations.RunPython.noop), | ||
] |
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
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