fix project create api
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# Generated by Django 5.2.4 on 2025-08-05 09:28
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('finance', '0002_paymenttype_cashtransaction_employees_and_more'),
|
||||
('projects', '0005_builder_project_area_project_benifit_plan_and_more'),
|
||||
('wherehouse', '0002_stockmovemend'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='project',
|
||||
name='cash_transaction',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='project',
|
||||
name='wherehouse',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='project',
|
||||
name='cash_transaction',
|
||||
field=models.ManyToManyField(null=True, related_name='projects', to='finance.cashtransaction'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='project',
|
||||
name='wherehouse',
|
||||
field=models.ManyToManyField(related_name='projects', to='wherehouse.wherehouse'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 5.2.4 on 2025-08-05 09:28
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('finance', '0002_paymenttype_cashtransaction_employees_and_more'),
|
||||
('projects', '0006_remove_project_cash_transaction_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='project',
|
||||
name='cash_transaction',
|
||||
field=models.ManyToManyField(related_name='projects', to='finance.cashtransaction'),
|
||||
),
|
||||
]
|
||||
18
core/apps/projects/migrations/0008_projectfolder_color.py
Normal file
18
core/apps/projects/migrations/0008_projectfolder_color.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.2.4 on 2025-08-05 09:37
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('projects', '0007_alter_project_cash_transaction'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='projectfolder',
|
||||
name='color',
|
||||
field=models.CharField(choices=[('ORANGE', 'orange'), ('GREEN', 'green'), ('BLUE', 'blue'), ('PURPLE', 'purple'), ('RED', 'red')], default='ORANGE', max_length=10),
|
||||
),
|
||||
]
|
||||
18
core/apps/projects/migrations/0009_project_status.py
Normal file
18
core/apps/projects/migrations/0009_project_status.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.2.4 on 2025-08-05 10:13
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('projects', '0008_projectfolder_color'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='project',
|
||||
name='status',
|
||||
field=models.CharField(choices=[('PLANNED', 'planned'), ('IN_PROGRESS', 'in progress'), ('FINISHED', 'finished'), ('SUSPENDED', 'suspended')], default='PLANNED', max_length=20),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user