diff --git a/TimeDispatcher/settings.py b/TimeDispatcher/settings.py index df0ad05..fed249b 100644 --- a/TimeDispatcher/settings.py +++ b/TimeDispatcher/settings.py @@ -17,7 +17,7 @@ from dotenv import load_dotenv # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent -APP_VERSION = "0.1.3" +APP_VERSION = "0.1.4" load_dotenv(BASE_DIR / ".env") diff --git a/dispatcher/migrations/0011_alter_project_parent.py b/dispatcher/migrations/0011_alter_project_parent.py new file mode 100644 index 0000000..a79faf7 --- /dev/null +++ b/dispatcher/migrations/0011_alter_project_parent.py @@ -0,0 +1,19 @@ +# Generated by Django 5.1.5 on 2025-04-23 20:09 + +import django.db.models.deletion +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('dispatcher', '0010_realsagexhours_unique_monthly_sagex'), + ] + + operations = [ + migrations.AlterField( + model_name='project', + name='parent', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dispatcher.parent'), + ), + ] diff --git a/dispatcher/models.py b/dispatcher/models.py index 5b5b41b..34be4fb 100644 --- a/dispatcher/models.py +++ b/dispatcher/models.py @@ -15,7 +15,8 @@ class Project(models.Model): parent = models.ForeignKey( Parent, on_delete=models.CASCADE, - null=True + null=True, + blank=True ) name = models.CharField(max_length=256)