mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 21:16:46 +00:00
* Add "project_code" field to Build model * Add "project_code" field to Build model * build javascript updates (cherry picked from commit 3e27a3b739c0925aeb1e09fd027d4a6183bad4ef) * Update table filters (cherry picked from commit 196c67558591e52c4fc84db54b7ed8468e952116) * Adds API filtering * Bump API version * Hide project code field from build form if project codes not enabled (cherry picked from commit 4e210e3dfa72f87f3a0a8ca51d25f076d9533b53) * refactoring to attempt to fix circular imports * Upgrade django-test-migrations package * Fix broken import * Further fixes for unit tests * Update unit tests for migration files * Fix typo in build.js * Migration test updates - Need to specify MPTT stuff * Fix build.js * Fix migration order * Update API version
21 lines
626 B
Python
21 lines
626 B
Python
# Generated by Django 3.2.19 on 2023-05-14 09:22
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('common', '0019_projectcode_metadata'),
|
|
('build', '0047_auto_20230606_1058'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='build',
|
|
name='project_code',
|
|
field=models.ForeignKey(blank=True, help_text='Project code for this build order', null=True, on_delete=django.db.models.deletion.SET_NULL, to='common.projectcode', verbose_name='Project Code'),
|
|
),
|
|
]
|