Skip to content

Commit

Permalink
add auto_converted_text property to data sets
Browse files Browse the repository at this point in the history
allows adding an explanation of how the dataset was automatically
converted in order to override the default one
  • Loading branch information
struan committed Jan 16, 2024
1 parent 11521db commit bb9f4fe
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions hub/migrations/0062_datatype_auto_converted_text.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.5 on 2024-01-16 11:09

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("hub", "0061_alter_dataset_data_type_alter_datatype_data_type"),
]

operations = [
migrations.AddField(
model_name="datatype",
name="auto_converted_text",
field=models.TextField(blank=True, null=True),
),
]
1 change: 1 addition & 0 deletions hub/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ class DataType(TypeMixin, ShaderMixin, models.Model):
default=False,
help_text="True if this has been auto converted from an area with overlapping geometry",
)
auto_converted_text = models.TextField(blank=True, null=True)

def __str__(self):
name = self.name
Expand Down

0 comments on commit bb9f4fe

Please sign in to comment.