0001-models-remove-obsolete-NullBooleanField-72067.patch
src/authentic2/a2_rbac/migrations/0017_organizationalunit_user_can_reset_password.py | ||
---|---|---|
11 | 11 |
migrations.AddField( |
12 | 12 |
model_name='organizationalunit', |
13 | 13 |
name='user_can_reset_password', |
14 |
field=models.NullBooleanField(verbose_name='Users can reset password'), |
|
14 |
field=models.BooleanField( |
|
15 |
verbose_name='Users can reset password', |
|
16 |
null=True, |
|
17 |
), |
|
15 | 18 |
), |
16 | 19 |
] |
src/authentic2/migrations/0010_attributevalue_multiple.py | ||
---|---|---|
11 | 11 |
migrations.AddField( |
12 | 12 |
model_name='attributevalue', |
13 | 13 |
name='multiple', |
14 |
field=models.NullBooleanField(),
|
|
14 |
field=models.BooleanField(null=True),
|
|
15 | 15 |
preserve_default=True, |
16 | 16 |
), |
17 | 17 |
] |
src/authentic2/migrations/0012_auto_20160211_2255.py | ||
---|---|---|
1 |
import django |
|
2 | 1 |
from django.db import migrations, models |
3 | 2 | |
4 | 3 | |
... | ... | |
12 | 11 |
migrations.AlterField( |
13 | 12 |
model_name='attributevalue', |
14 | 13 |
name='multiple', |
15 |
field=models.NullBooleanField(default=False) |
|
16 |
if django.VERSION < (2,) |
|
17 |
else models.BooleanField(default=False, null=True), |
|
14 |
field=models.BooleanField(default=False, null=True), |
|
18 | 15 |
), |
19 | 16 |
] |
src/authentic2/models.py | ||
---|---|---|
332 | 332 |
owner = GenericForeignKey('content_type', 'object_id') |
333 | 333 | |
334 | 334 |
attribute = models.ForeignKey('Attribute', verbose_name=_('attribute'), on_delete=models.CASCADE) |
335 |
if django.VERSION < (2,): |
|
336 |
multiple = models.NullBooleanField(default=False) |
|
337 |
else: |
|
338 |
multiple = models.BooleanField(default=False, null=True) |
|
335 |
multiple = models.BooleanField(default=False, null=True) |
|
339 | 336 | |
340 | 337 |
content = models.TextField(verbose_name=_('content'), db_index=True) |
341 | 338 |
search_vector = SearchVectorField(null=True, editable=False) |
342 |
- |