Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
Close dbca-wa/wastd#315 Relabel VegClass, add fifth stratum
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Mayer authored and Florian Mayer committed Jul 30, 2020
1 parent f60e67c commit d5c6219
Show file tree
Hide file tree
Showing 3 changed files with 173 additions and 8 deletions.
73 changes: 73 additions & 0 deletions occurrence/migrations/0050_auto_20200730_1248.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Generated by Django 3.0.8 on 2020-07-30 04:48

import django.contrib.gis.db.models.fields
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import uuid


class Migration(migrations.Migration):

dependencies = [
('taxonomy', '0034_auto_20200730_1248'),
('occurrence', '0049_auto_20200723_1625'),
]

operations = [
migrations.AddField(
model_name='vegetationclassification',
name='level5',
field=models.TextField(blank=True, help_text='The fifth classification level: Overstorey', null=True, verbose_name='Overstorey'),
),
migrations.AlterField(
model_name='areaencounter',
name='point',
field=django.contrib.gis.db.models.fields.PointField(blank=True, help_text='A point representing the area occupied by the encountered subject. If empty, the point will be calculated as the centroid of the polygon extent. If you have coordinates, click first into the map to generate GeoJSON, then insert your coordinates into the GeoJSON. Save and review!', null=True, srid=4326, verbose_name='Representative Point'),
),
migrations.AlterField(
model_name='areaencounter',
name='source_id',
field=models.CharField(default=uuid.UUID('ee5d6854-d21f-11ea-a056-87bd367653c6'), help_text='The ID of the record in the original source, if available.', max_length=1000, verbose_name='Source ID'),
),
migrations.AlterField(
model_name='firehistory',
name='fire_intensity',
field=models.CharField(choices=[('NA', 'NA'), ('no', 'No evidence of fire'), ('low', 'Low'), ('medium', 'Medium'), ('high', 'High')], default='NA', help_text='Estimated intensity of last fire on a scale from High to Low, including no evidence of fire, or leave NA if this information is not available.', max_length=100, verbose_name='Fire intensity'),
),
migrations.AlterField(
model_name='firehistory',
name='last_fire_date',
field=models.DateField(blank=True, help_text='The estimated date of the last fire, if evident. Choose the closest date to your estimate.', null=True, verbose_name='Date of last fire'),
),
migrations.AlterField(
model_name='plantcount',
name='flowering_plants_percent',
field=models.PositiveIntegerField(blank=True, help_text='The proportion of flowering plants of surveyed population in percent [0..100].', null=True, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(100)], verbose_name='Flowering Plants [%]'),
),
migrations.AlterField(
model_name='taxonareaencounter',
name='taxon',
field=models.ForeignKey(help_text='The taxonomic name of the encountered subject. Type the taxonomic or vernacular name to see available names. The autocomplete widget times out if left for too long.', on_delete=django.db.models.deletion.PROTECT, related_name='taxon_occurrences', to='taxonomy.Taxon'),
),
migrations.AlterField(
model_name='vegetationclassification',
name='level1',
field=models.TextField(blank=True, help_text='The first classification level: Surface', null=True, verbose_name='Surface'),
),
migrations.AlterField(
model_name='vegetationclassification',
name='level2',
field=models.TextField(blank=True, help_text='The second classification level: Near Surface', null=True, verbose_name='Near Surface'),
),
migrations.AlterField(
model_name='vegetationclassification',
name='level3',
field=models.TextField(blank=True, help_text='The third classification level: Elevated', null=True, verbose_name='Elevated'),
),
migrations.AlterField(
model_name='vegetationclassification',
name='level4',
field=models.TextField(blank=True, help_text='The fourth classification level: Intermediate', null=True, verbose_name='Intermediate'),
),
]
24 changes: 16 additions & 8 deletions occurrence/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,26 +970,34 @@ class VegetationClassification(ObservationGroup):

level1 = models.TextField(
blank=True, null=True,
verbose_name=_("Level 1"),
help_text=_("The first classification level."),
verbose_name=_("Surface"),
help_text=_("The first classification level: Surface. "
"Structural formations should follow 2009 Australian "
"Soil and Land Survey Field Handbook guidelines."),
)

level2 = models.TextField(
blank=True, null=True,
verbose_name=_("Level 2"),
help_text=_("The first classification level."),
verbose_name=_("Near Surface"),
help_text=_("The second classification level: Near Surface"),
)

level3 = models.TextField(
blank=True, null=True,
verbose_name=_("Level 3"),
help_text=_("The first classification level."),
verbose_name=_("Elevated"),
help_text=_("The third classification level: Elevated"),
)

level4 = models.TextField(
blank=True, null=True,
verbose_name=_("Level 4"),
help_text=_("The first classification level."),
verbose_name=_("Intermediate"),
help_text=_("The fourth classification level: Intermediate"),
)

level5 = models.TextField(
blank=True, null=True,
verbose_name=_("Overstorey"),
help_text=_("The fifth classification level: Overstorey"),
)

class Meta:
Expand Down
84 changes: 84 additions & 0 deletions taxonomy/migrations/0034_auto_20200730_1248.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Generated by Django 3.0.8 on 2020-07-30 04:48

from django.db import migrations, models
import uuid


class Migration(migrations.Migration):

dependencies = [
('taxonomy', '0033_auto_20200723_1625'),
]

operations = [
migrations.AlterField(
model_name='community',
name='source_id',
field=models.CharField(default=uuid.UUID('ee5d6854-d21f-11ea-a056-87bd367653c6'), help_text='The ID of the record in the original source, if available.', max_length=1000, verbose_name='Source ID'),
),
migrations.AlterField(
model_name='hbvfamily',
name='class_name',
field=models.CharField(blank=True, help_text='', max_length=1000, null=True, verbose_name='Class'),
),
migrations.AlterField(
model_name='hbvfamily',
name='division_name',
field=models.CharField(blank=True, help_text='', max_length=1000, null=True, verbose_name='Division'),
),
migrations.AlterField(
model_name='hbvfamily',
name='family_name',
field=models.CharField(blank=True, help_text='', max_length=1000, null=True, verbose_name='Family Name'),
),
migrations.AlterField(
model_name='hbvfamily',
name='kingdom_name',
field=models.CharField(blank=True, help_text='', max_length=1000, null=True, verbose_name='Kingdom'),
),
migrations.AlterField(
model_name='hbvfamily',
name='order_name',
field=models.CharField(blank=True, help_text='', max_length=1000, null=True, verbose_name='Order Name'),
),
migrations.AlterField(
model_name='hbvfamily',
name='supra_code',
field=models.CharField(blank=True, help_text='', max_length=1000, null=True, verbose_name='HBV Suprafamily Group Code'),
),
migrations.AlterField(
model_name='hbvgroup',
name='class_id',
field=models.CharField(blank=True, help_text='', max_length=1000, null=True, verbose_name='HBV Suprafamily Group Code'),
),
migrations.AlterField(
model_name='hbvparent',
name='class_id',
field=models.CharField(blank=True, help_text='', max_length=100, null=True, verbose_name='WACensus ClassID'),
),
migrations.AlterField(
model_name='hbvspecies',
name='consv_code',
field=models.CharField(blank=True, help_text='', max_length=100, null=True, verbose_name='Conservation Code'),
),
migrations.AlterField(
model_name='hbvspecies',
name='naturalised',
field=models.CharField(blank=True, help_text='', max_length=100, null=True, verbose_name='Naturalised'),
),
migrations.AlterField(
model_name='hbvspecies',
name='ranking',
field=models.CharField(blank=True, help_text='', max_length=100, null=True, verbose_name='Ranking'),
),
migrations.AlterField(
model_name='hbvvernacular',
name='name',
field=models.CharField(blank=True, help_text='', max_length=1000, null=True, verbose_name='Name'),
),
migrations.AlterField(
model_name='hbvvernacular',
name='vernacular',
field=models.CharField(blank=True, help_text='', max_length=1000, null=True, verbose_name='Vernacular Name'),
),
]

0 comments on commit d5c6219

Please sign in to comment.