Skip to content

Commit

Permalink
fix: Make contract_end_date nullable in `EnterpriseAdminSummarizeIn…
Browse files Browse the repository at this point in the history
…sights` model
  • Loading branch information
muhammad-ammar committed Oct 12, 2023
1 parent 04321ca commit 1e642e5
Show file tree
Hide file tree
Showing 4 changed files with 24 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 @@ 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

0 comments on commit 1e642e5

Please sign in to comment.