v0.1.4: minor fix #6

Merged
HEL merged 2 commits from fix/5-edit-orphan-project into dev 2025-04-23 21:59:32 +00:00
3 changed files with 22 additions and 2 deletions

View File

@ -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")

View File

@ -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'),
),
]

View File

@ -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)