From be4a7baf8e6665981cf4c871f6ae23afdd655fd9 Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Mon, 13 Apr 2020 16:14:06 +0100 Subject: [PATCH] Remove obsolete 'next_scheduled_maint' from asset model Should fix production data... --- .../0015_remove_asset_next_sched_maint.py | 17 +++++++++++++++++ assets/models.py | 1 - 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 assets/migrations/0015_remove_asset_next_sched_maint.py diff --git a/assets/migrations/0015_remove_asset_next_sched_maint.py b/assets/migrations/0015_remove_asset_next_sched_maint.py new file mode 100644 index 00000000..a6a63f44 --- /dev/null +++ b/assets/migrations/0015_remove_asset_next_sched_maint.py @@ -0,0 +1,17 @@ +# Generated by Django 3.0.3 on 2020-04-13 15:13 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('assets', '0014_auto_20200218_1840'), + ] + + operations = [ + migrations.RemoveField( + model_name='asset', + name='next_sched_maint', + ), + ] diff --git a/assets/models.py b/assets/models.py index 4f6f96ec..2b709a94 100644 --- a/assets/models.py +++ b/assets/models.py @@ -99,7 +99,6 @@ class Asset(models.Model, RevisionMixin): purchase_price = models.DecimalField(blank=True, null=True, decimal_places=2, max_digits=10) salvage_value = models.DecimalField(blank=True, null=True, decimal_places=2, max_digits=10) comments = models.TextField(blank=True) - next_sched_maint = models.DateField(blank=True, null=True) # Cable assets is_cable = models.BooleanField(default=False)