Merge pull request 'v0.1.4: minor fix' (#7) from dev into main

Reviewed-on: #7
This commit is contained in:
Louis Heredero 2025-04-23 22:00:44 +00:00
commit 100f8777ff
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'. # Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent BASE_DIR = Path(__file__).resolve().parent.parent
APP_VERSION = "0.1.3" APP_VERSION = "0.1.4"
load_dotenv(BASE_DIR / ".env") 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 = models.ForeignKey(
Parent, Parent,
on_delete=models.CASCADE, on_delete=models.CASCADE,
null=True null=True,
blank=True
) )
name = models.CharField(max_length=256) name = models.CharField(max_length=256)