Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Make contract_end_date nullable in `EnterpriseAdminSummarizeIn… #408

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Unreleased
----------

=========================
[5.4.2] - 2023-10-12
---------------------
* Make `contract_end_date` nullable in `EnterpriseAdminSummarizeInsights` model

[5.4.1] - 2023-09-22
---------------------
* Update NullBooleanField for Django 4.2 support
Expand Down
2 changes: 1 addition & 1 deletion enterprise_data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Enterprise data api application. This Django app exposes API endpoints used by enterprises.
"""

__version__ = "5.4.1"
__version__ = "5.4.2"
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.20 on 2023-10-12 06:36

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('enterprise_data', '0037_alter_enterpriseenrollment_consent_granted'),
]

operations = [
migrations.AlterField(
model_name='enterpriseadminsummarizeinsights',
name='contract_end_date',
field=models.DateTimeField(help_text='Contract end date', null=True),
),
]
2 changes: 1 addition & 1 deletion enterprise_data/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class Meta:
)
hours = models.PositiveIntegerField(help_text='Total number of learning hours in last 30 days')
hours_prior = models.PositiveIntegerField(help_text='Total number of learning hours in last 31-60 days')
contract_end_date = models.DateTimeField(help_text='Contract end date')
contract_end_date = models.DateTimeField(help_text='Contract end date', null=True)
active_contract = models.BooleanField(help_text='Whether or not the customer has a contract?')
created_at = models.DateTimeField()

Expand Down
Loading