Add zones to plant model
This commit is contained in:
parent
34561a85bb
commit
d48f202634
2 changed files with 44 additions and 26 deletions
18
backend/right_tree/api/migrations/0003_plant_zones.py
Normal file
18
backend/right_tree/api/migrations/0003_plant_zones.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 3.2.8 on 2021-11-04 00:03
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('api', '0002_habitat_habitatimage_zone_zoneimagesegment'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='plant',
|
||||
name='zones',
|
||||
field=models.ManyToManyField(to='api.Zone'),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue