24 lines
631 B
Python
24 lines
631 B
Python
|
|
from django.db import migrations, models
|
||
|
|
import django.db.models.deletion
|
||
|
|
|
||
|
|
|
||
|
|
class Migration(migrations.Migration):
|
||
|
|
dependencies = [
|
||
|
|
("farm_hub", "0002_seed_default_catalog"),
|
||
|
|
("crop_zoning", "0003_zone_processing_and_analysis"),
|
||
|
|
]
|
||
|
|
|
||
|
|
operations = [
|
||
|
|
migrations.AddField(
|
||
|
|
model_name="croparea",
|
||
|
|
name="farm",
|
||
|
|
field=models.ForeignKey(
|
||
|
|
blank=True,
|
||
|
|
null=True,
|
||
|
|
on_delete=django.db.models.deletion.CASCADE,
|
||
|
|
related_name="crop_areas",
|
||
|
|
to="farm_hub.farmhub",
|
||
|
|
),
|
||
|
|
),
|
||
|
|
]
|