Skip to content

Commit

Permalink
Merge pull request #1794 from openedx/saleem-latif/ENT-7303
Browse files Browse the repository at this point in the history
refactor: Replaced the deprecated NullBooleanField with BooleanField(null=True)
  • Loading branch information
saleem-latif authored Jul 7, 2023
2 parents 76a2634 + a5208a1 commit 07cb839
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Change Log
Unreleased
----------
[3.69.0]
--------
refactor: Replaced the deprecated `NullBooleanField` with `BooleanField(null=True)`

[3.68.1]
--------
fix: pick first object from CourseDetails
Expand Down
23 changes: 23 additions & 0 deletions consent/migrations/0005_auto_20230707_0755.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.2.18 on 2023-07-07 07:55

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('consent', '0004_datasharingconsenttextoverrides'),
]

operations = [
migrations.AlterField(
model_name='datasharingconsent',
name='granted',
field=models.BooleanField(help_text='Whether consent is granted.', null=True),
),
migrations.AlterField(
model_name='historicaldatasharingconsent',
name='granted',
field=models.BooleanField(help_text='Whether consent is granted.', null=True),
),
]
2 changes: 1 addition & 1 deletion consent/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class Meta:
null=False,
help_text=_("Name of the user whose consent state is stored.")
)
granted = models.NullBooleanField(help_text=_("Whether consent is granted."))
granted = models.BooleanField(null=True, help_text=_("Whether consent is granted."))

@property
def _exists(self):
Expand Down
2 changes: 1 addition & 1 deletion enterprise/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
Your project description goes here.
"""

__version__ = "3.68.1"
__version__ = "3.69.0"

default_app_config = "enterprise.apps.EnterpriseConfig"

0 comments on commit 07cb839

Please sign in to comment.