0001-a2_rbac-enforce-boolean-choice-on-OUs-user-password-.patch
src/authentic2/a2_rbac/migrations/0025_auto_20201027_1219.py | ||
---|---|---|
1 |
# -*- coding: utf-8 -*- |
|
2 |
# Generated by Django 1.11.18 on 2020-10-27 11:19 |
|
3 |
from __future__ import unicode_literals |
|
4 | ||
5 |
from django.db import migrations, models |
|
6 | ||
7 | ||
8 |
class Migration(migrations.Migration): |
|
9 | ||
10 |
dependencies = [ |
|
11 |
('a2_rbac', '0024_fix_self_admin_perm'), |
|
12 |
] |
|
13 | ||
14 |
operations = [ |
|
15 |
migrations.AlterField( |
|
16 |
model_name='organizationalunit', |
|
17 |
name='user_can_reset_password', |
|
18 |
field=models.BooleanField(default=True, verbose_name='Users can reset password'), |
|
19 |
), |
|
20 |
] |
src/authentic2/a2_rbac/models.py | ||
---|---|---|
87 | 87 |
content_type_field='target_ct', |
88 | 88 |
object_id_field='target_id') |
89 | 89 | |
90 |
user_can_reset_password = models.NullBooleanField( |
|
90 |
user_can_reset_password = models.BooleanField( |
|
91 |
default=True, |
|
91 | 92 |
verbose_name=_('Users can reset password')) |
92 | 93 | |
93 | 94 |
user_add_password_policy = models.IntegerField( |
94 |
- |