Refactored away "assets" property on "Supplier" by using "related_name" instead

This commit is contained in:
Matthew Smith
2020-01-03 21:33:23 +00:00
parent 096ca24336
commit 5696cf73ce
3 changed files with 21 additions and 10 deletions

View File

@@ -0,0 +1,19 @@
# Generated by Django 2.0.13 on 2020-01-03 21:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('assets', '0009_auto_20200102_1933_squashed_0011_auto_20200102_2040'),
]
operations = [
migrations.AlterField(
model_name='asset',
name='purchased_from',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='assets', to='assets.Supplier'),
),
]