From 1fc90b5eabfcaeaed0806d08e3f063d3accc2a1d Mon Sep 17 00:00:00 2001 From: Shoaib Sarwar Date: Wed, 13 Nov 2024 13:10:25 +0500 Subject: [PATCH 1/3] [ISSUE-3783] Altering title in the TicketNote --- .../migrations/0121_alter_ticketnote_title.py | 18 ++++++++++++++++++ djautotask/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 djautotask/migrations/0121_alter_ticketnote_title.py diff --git a/djautotask/migrations/0121_alter_ticketnote_title.py b/djautotask/migrations/0121_alter_ticketnote_title.py new file mode 100644 index 0000000..4d1286c --- /dev/null +++ b/djautotask/migrations/0121_alter_ticketnote_title.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.16 on 2024-11-12 16:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('djautotask', '0120_merge_20241101_1316'), + ] + + operations = [ + migrations.AlterField( + model_name='ticketnote', + name='title', + field=models.CharField(blank=True, max_length=250, null=True), + ), + ] diff --git a/djautotask/models.py b/djautotask/models.py index 24632d6..f5c70c1 100644 --- a/djautotask/models.py +++ b/djautotask/models.py @@ -444,7 +444,7 @@ def get_queryset(self): class TicketNote(TimeStampedModel, Note): - title = models.CharField(max_length=250) + title = models.CharField(max_length=250, blank=True, null=True) description = models.CharField(max_length=3200) create_date_time = models.DateTimeField(blank=True, null=True) last_activity_date = models.DateTimeField(blank=True, null=True) From 35cc6f1da0905ed8a61a3f61f216d585161220be Mon Sep 17 00:00:00 2001 From: Shoaib Sarwar Date: Wed, 13 Nov 2024 13:33:39 +0500 Subject: [PATCH 2/3] bump version --- djautotask/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djautotask/__init__.py b/djautotask/__init__.py index df8a1b4..b29a95a 100644 --- a/djautotask/__init__.py +++ b/djautotask/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -VERSION = (1, 6, 10, 'final') +VERSION = (1, 6, 11, 'final') # pragma: no cover if VERSION[-1] != "final": From 24079299b91333205ece4d06530c02726321b15a Mon Sep 17 00:00:00 2001 From: Sam Wolfe Date: Wed, 13 Nov 2024 12:10:55 -0800 Subject: [PATCH 3/3] fix migrations --- ...ter_ticketnote_title.py => 0122_alter_ticketnote_title.py} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename djautotask/migrations/{0121_alter_ticketnote_title.py => 0122_alter_ticketnote_title.py} (70%) diff --git a/djautotask/migrations/0121_alter_ticketnote_title.py b/djautotask/migrations/0122_alter_ticketnote_title.py similarity index 70% rename from djautotask/migrations/0121_alter_ticketnote_title.py rename to djautotask/migrations/0122_alter_ticketnote_title.py index 4d1286c..16e0663 100644 --- a/djautotask/migrations/0121_alter_ticketnote_title.py +++ b/djautotask/migrations/0122_alter_ticketnote_title.py @@ -1,4 +1,4 @@ -# Generated by Django 4.2.16 on 2024-11-12 16:03 +# Generated by Django 4.2.16 on 2024-11-13 12:08 from django.db import migrations, models @@ -6,7 +6,7 @@ class Migration(migrations.Migration): dependencies = [ - ('djautotask', '0120_merge_20241101_1316'), + ('djautotask', '0121_merge_0120_merge_20241101_1316_0120_resource_title'), ] operations = [