diff options
-rw-r--r-- | app/locations/admin.py | 2 | ||||
-rw-r--r-- | app/locations/migrations/0012_mexstates.py | 36 | ||||
-rw-r--r-- | app/locations/migrations/0013_auto_20180929_1041.py | 18 | ||||
-rw-r--r-- | app/locations/migrations/0014_delete_mexstates.py | 16 |
4 files changed, 71 insertions, 1 deletions
diff --git a/app/locations/admin.py b/app/locations/admin.py index 4298761..26001a4 100644 --- a/app/locations/admin.py +++ b/app/locations/admin.py @@ -117,7 +117,7 @@ class CountryAdmin(OSMGeoAdmin): @admin.register(State) class StateAdmin(OSMGeoAdmin): - list_display = ('name', 'code', 'slug', 'country') + list_display = ('name', 'code', 'slug', 'country', 'pub_date') prepopulated_fields = {'slug': ('name',)} search_fields = ('name', 'country') ordering = ('name',) diff --git a/app/locations/migrations/0012_mexstates.py b/app/locations/migrations/0012_mexstates.py new file mode 100644 index 0000000..9a8b162 --- /dev/null +++ b/app/locations/migrations/0012_mexstates.py @@ -0,0 +1,36 @@ +# Generated by Django 2.1.1 on 2018-09-29 10:35 + +import django.contrib.gis.db.models.fields +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('locations', '0011_campsite_campsite_price'), + ] + + operations = [ + migrations.CreateModel( + name='mexstates', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('objectid', models.IntegerField()), + ('fips_admin', models.CharField(max_length=4)), + ('gmi_admin', models.CharField(max_length=7)), + ('admin_name', models.CharField(max_length=42)), + ('fips_cntry', models.CharField(max_length=2)), + ('gmi_cntry', models.CharField(max_length=3)), + ('cntry_name', models.CharField(max_length=40)), + ('pop_admin', models.IntegerField()), + ('type_eng', models.CharField(max_length=26)), + ('type_loc', models.CharField(max_length=50)), + ('sqkm', models.FloatField()), + ('sqmi', models.FloatField()), + ('color_map', models.CharField(max_length=2)), + ('shape_leng', models.FloatField()), + ('shape_area', models.FloatField()), + ('geom', django.contrib.gis.db.models.fields.MultiPolygonField(srid=4326)), + ], + ), + ] diff --git a/app/locations/migrations/0013_auto_20180929_1041.py b/app/locations/migrations/0013_auto_20180929_1041.py new file mode 100644 index 0000000..9401759 --- /dev/null +++ b/app/locations/migrations/0013_auto_20180929_1041.py @@ -0,0 +1,18 @@ +# Generated by Django 2.1.1 on 2018-09-29 10:41 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('locations', '0012_mexstates'), + ] + + operations = [ + migrations.AlterField( + model_name='mexstates', + name='objectid', + field=models.IntegerField(null=True), + ), + ] diff --git a/app/locations/migrations/0014_delete_mexstates.py b/app/locations/migrations/0014_delete_mexstates.py new file mode 100644 index 0000000..e3c1eb5 --- /dev/null +++ b/app/locations/migrations/0014_delete_mexstates.py @@ -0,0 +1,16 @@ +# Generated by Django 2.1.1 on 2018-09-29 11:18 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('locations', '0013_auto_20180929_1041'), + ] + + operations = [ + migrations.DeleteModel( + name='mexstates', + ), + ] |