Resource: Make fields as per #9944
This commit is contained in:
parent
b4b6f8b3af
commit
c28717f455
2 changed files with 49 additions and 6 deletions
43
app/migrations/0041_auto_20211128_1347.py
Normal file
43
app/migrations/0041_auto_20211128_1347.py
Normal file
|
@ -0,0 +1,43 @@
|
|||
# Generated by Django 3.2.5 on 2021-11-28 13:47
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('app', '0040_alter_resource_type'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='resource',
|
||||
name='PEGASuS_Assessment_ID',
|
||||
field=models.CharField(blank=True, max_length=32, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='resource',
|
||||
name='PEGASuS_polygon_ID',
|
||||
field=models.CharField(blank=True, max_length=32, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='resource',
|
||||
name='doi',
|
||||
field=models.CharField(blank=True, max_length=128, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='resource',
|
||||
name='lat',
|
||||
field=models.CharField(blank=True, max_length=128, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='resource',
|
||||
name='lon',
|
||||
field=models.CharField(blank=True, max_length=128, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='resource',
|
||||
name='wiki_data_id',
|
||||
field=models.CharField(blank=True, max_length=128, null=True),
|
||||
),
|
||||
]
|
|
@ -193,13 +193,13 @@ class Resource(models.Model):
|
|||
|
||||
type = models.TextField(blank=True, null=True, choices=TYPE_CHOICES)
|
||||
author_keywords = models.TextField(blank=True, null=True)
|
||||
lat = models.TextField(blank=True, null=True)
|
||||
lon = models.TextField(blank=True, null=True)
|
||||
lat = models.CharField(blank=True, null=True, max_length=128)
|
||||
lon = models.CharField(blank=True, null=True, max_length=128)
|
||||
stars = models.TextField(blank=True, null=True, choices=STAR_CHOICES)
|
||||
PEGASuS_Check_map_with_author = models.BooleanField(default=False)
|
||||
PEGASuS_polygon_ID = models.TextField(blank=True, null=True)
|
||||
PEGASuS_polygon_ID = models.CharField(max_length=32, blank=True, null=True)
|
||||
PEGASuS_Polygon_comments = models.TextField(blank=True, null=True)
|
||||
PEGASuS_Assessment_ID = models.TextField(blank=True, null=True)
|
||||
PEGASuS_Assessment_ID = models.CharField(max_length=32, blank=True, null=True)
|
||||
gloria = models.BooleanField(default=False)
|
||||
gnomo = models.BooleanField(default=False)
|
||||
lter = models.BooleanField(default=False)
|
||||
|
@ -207,8 +207,8 @@ class Resource(models.Model):
|
|||
miren = models.BooleanField(default=False)
|
||||
team = models.BooleanField(default=False)
|
||||
inventory = models.BooleanField(default=False)
|
||||
doi = models.TextField(blank=True, null=True)
|
||||
wiki_data_id = models.TextField(blank=True, null=True)
|
||||
doi = models.CharField(max_length=128, blank=True, null=True)
|
||||
wiki_data_id = models.CharField(max_length=128, blank=True, null=True)
|
||||
|
||||
class Meta:
|
||||
db_table = 'resource'
|
||||
|
|
Loading…
Reference in a new issue