mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Fixed missed migration
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
# Generated by Django 2.0.13 on 2019-12-05 13:54
|
||||
# Generated by Django 2.0.13 on 2019-12-05 16:53
|
||||
# Edited by Matthew Smith on same date.
|
||||
|
||||
import re
|
||||
from django.db import migrations, models
|
||||
from django.db import migrations, models
|
||||
import django.db.migrations.operations.special
|
||||
|
||||
|
||||
def forwards(apps, schema_editor):
|
||||
AssetModel = apps.get_model('assets', 'Asset')
|
||||
@@ -21,6 +25,8 @@ 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'),
|
||||
]
|
||||
@@ -38,5 +44,12 @@ class Migration(migrations.Migration):
|
||||
field=models.CharField(default=0, max_length=5),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.RunPython(forwards, reverse_code=migrations.RunPython.noop),
|
||||
migrations.RunPython(
|
||||
code=forwards,
|
||||
reverse_code=django.db.migrations.operations.special.RunPython.noop,
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name='asset',
|
||||
options={'ordering': ['asset_id_prefix', 'asset_id_number'], 'permissions': (('asset_finance', 'Can see financial data for assets'), ('view_asset', 'Can view an asset'))},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user