mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-29 11:22:15 +00:00
Ensured hidden asset fields are completed on every database write
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
# Generated by Django 2.0.13 on 2019-12-05 16:53
|
||||
# Edited by Matthew Smith on same date.
|
||||
# Generated by Django 2.0.13 on 2019-12-05 19:37
|
||||
|
||||
import re
|
||||
from django.db import migrations, models
|
||||
from django.db import migrations, models
|
||||
import django.db.migrations.operations.special
|
||||
|
||||
import django.db.migrations
|
||||
|
||||
def forwards(apps, schema_editor):
|
||||
AssetModel = apps.get_model('assets', 'Asset')
|
||||
@@ -25,8 +22,6 @@ def forwards(apps, schema_editor):
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
replaces = [('assets', '0008_auto_20191205_1354'), ('assets', '0009_auto_20191205_1652')]
|
||||
|
||||
dependencies = [
|
||||
('assets', '0007_auto_20190108_0202_squashed_0014_auto_20191017_2052'),
|
||||
]
|
||||
@@ -35,14 +30,12 @@ class Migration(migrations.Migration):
|
||||
migrations.AddField(
|
||||
model_name='asset',
|
||||
name='asset_id_number',
|
||||
field=models.IntegerField(default=0),
|
||||
preserve_default=False,
|
||||
field=models.IntegerField(default=1),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='asset',
|
||||
name='asset_id_prefix',
|
||||
field=models.CharField(default=0, max_length=5),
|
||||
preserve_default=False,
|
||||
field=models.CharField(default='', max_length=5),
|
||||
),
|
||||
migrations.RunPython(
|
||||
code=forwards,
|
||||
Reference in New Issue
Block a user