Skip to content

Commit

Permalink
due date can be null (#230)
Browse files Browse the repository at this point in the history
* due date can be null

* Add migration

---------

Co-authored-by: Sam Wolfe <[email protected]>
Co-authored-by: Matt Fox <[email protected]>
  • Loading branch information
3 people authored Oct 23, 2024
1 parent c5f4cc5 commit 369a75d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion djautotask/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
VERSION = (1, 6, 5, 'final')
VERSION = (1, 6, 7, 'final')

# pragma: no cover
if VERSION[-1] != "final":
Expand Down
18 changes: 18 additions & 0 deletions djautotask/migrations/0118_alter_ticket_due_date_time.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.16 on 2024-10-23 14:16

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('djautotask', '0117_alter_tasknote_task_alter_ticketnote_ticket'),
]

operations = [
migrations.AlterField(
model_name='ticket',
name='due_date_time',
field=models.DateTimeField(blank=True, null=True),
),
]
2 changes: 1 addition & 1 deletion djautotask/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Ticket(TimeStampedModel):
completed_date = models.DateTimeField(blank=True, null=True)
create_date = models.DateTimeField(blank=True, null=True)
description = models.TextField(blank=True, null=True, max_length=8000)
due_date_time = models.DateTimeField(null=False)
due_date_time = models.DateTimeField(blank=True, null=True)
estimated_hours = models.DecimalField(
blank=True, null=True, decimal_places=2, max_digits=9)
last_activity_date = models.DateTimeField(blank=True, null=True)
Expand Down

0 comments on commit 369a75d

Please sign in to comment.