mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 12:18:45 -05:00
change ingore_inherit to inherit_fields
This commit is contained in:
@@ -28,11 +28,6 @@ class Migration(migrations.Migration):
|
||||
]
|
||||
|
||||
operations = [
|
||||
# migrations.AddField(
|
||||
# model_name='food',
|
||||
# name='on_hand',
|
||||
# field=models.BooleanField(default=False),
|
||||
# ),
|
||||
migrations.AddField(
|
||||
model_name='shoppinglistentry',
|
||||
name='completed_at',
|
||||
@@ -105,11 +100,6 @@ class Migration(migrations.Migration):
|
||||
],
|
||||
bases=(models.Model, PermissionModelMixin),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='food',
|
||||
name='inherit',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='userpreference',
|
||||
name='mealplan_autoinclude_related',
|
||||
@@ -117,7 +107,7 @@ class Migration(migrations.Migration):
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='food',
|
||||
name='ignore_inherit',
|
||||
name='inherit_fields',
|
||||
field=models.ManyToManyField(blank=True, to='cookbook.FoodInheritField'),
|
||||
),
|
||||
migrations.AddField(
|
||||
@@ -145,5 +135,10 @@ class Migration(migrations.Migration):
|
||||
name='shopping_recent_days',
|
||||
field=models.PositiveIntegerField(default=7),
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='food',
|
||||
old_name='ignore_shopping',
|
||||
new_name='food_onhand',
|
||||
),
|
||||
migrations.RunPython(copy_values_to_sle),
|
||||
]
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
# Generated by Django 3.2.10 on 2021-12-29 20:11
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
from cookbook.models import FoodInheritField
|
||||
|
||||
# TODO this can be deleted
|
||||
# def temp_migration(apps, schema_editor):
|
||||
# x = FoodInheritField.objects.get(name='Ignore Shopping', field='ignore_shopping')
|
||||
# x.name = 'On Hand'
|
||||
# x.field = 'food_onhand'
|
||||
# x.save
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('cookbook', '0162_userpreference_csv_delim'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
# TODO this can be deleted
|
||||
# migrations.RunPython(temp_migration),
|
||||
# TODO this stays
|
||||
migrations.RenameField(
|
||||
model_name='food',
|
||||
old_name='ignore_shopping',
|
||||
new_name='food_onhand',
|
||||
),
|
||||
# TODO this can be deleted
|
||||
# migrations.RemoveField(
|
||||
# model_name='food',
|
||||
# name='on_hand',
|
||||
# ),
|
||||
]
|
||||
Reference in New Issue
Block a user