forked from ponytracker/ponytracker
-
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.
Add his issue edit permission with his comment edit permission
- Loading branch information
Showing
7 changed files
with
114 additions
and
19 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,21 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.7 on 2017-11-15 09:01 | ||
from __future__ import unicode_literals | ||
|
||
import django.contrib.auth.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('accounts', '0006_auto_20171026_0747'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='user', | ||
name='username', | ||
field=models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username'), | ||
), | ||
] |
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,36 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.7 on 2017-11-15 09:03 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations | ||
import permissions.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('permissions', '0009_globalpermission_modify_his_comment'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='globalpermission', | ||
old_name='modify_his_comment', | ||
new_name='modify_his_issue_comment', | ||
), | ||
migrations.RenameField( | ||
model_name='projectpermission', | ||
old_name='modify_his_comment', | ||
new_name='modify_his_issue_comment', | ||
), | ||
migrations.AlterField( | ||
model_name='globalpermission', | ||
name='modify_his_issue_comment', | ||
field=permissions.models.ProjectPermissionField(default=False, verbose_name='Modify his issue and comment'), | ||
), | ||
migrations.AlterField( | ||
model_name='projectpermission', | ||
name='modify_his_issue_comment', | ||
field=permissions.models.PermissionField(default=False, verbose_name='Modify his issue and comment'), | ||
), | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.7 on 2017-11-15 09:33 | ||
from __future__ import unicode_literals | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('tracker', '0011_auto_20171031_1530'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='settings', | ||
name='edit_policy', | ||
field=models.IntegerField(choices=[(0, 'No timeout'), (1, 'Timeout'), (2, 'As long no next comment')], default=0, verbose_name='Policy for "Modify his issue and comment" permission'), | ||
), | ||
migrations.AlterField( | ||
model_name='settings', | ||
name='edit_policy_timeout', | ||
field=models.IntegerField(default=30, validators=[django.core.validators.MinValueValidator(1)], verbose_name='Timeout for "Modify his issue and comment" permission (in min)'), | ||
), | ||
] |
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
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