diff options
author | luxagraf <sng@luxagraf.net> | 2019-02-01 09:27:21 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-02-01 09:27:21 -0600 |
commit | 3a54cdb85027e4a59ca6d78f5b91dbf7be77afd0 (patch) | |
tree | 5fedfaa18d46d4da45ef9504b511eaa74bda4eae /app/locations/migrations/0015_luxcheckin.py | |
parent | 34f95ec85a7956515f810c9fda7d9650edc7da30 (diff) |
redid jrnl to speed things up and use less memory
Diffstat (limited to 'app/locations/migrations/0015_luxcheckin.py')
-rw-r--r-- | app/locations/migrations/0015_luxcheckin.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/app/locations/migrations/0015_luxcheckin.py b/app/locations/migrations/0015_luxcheckin.py new file mode 100644 index 0000000..085bd9c --- /dev/null +++ b/app/locations/migrations/0015_luxcheckin.py @@ -0,0 +1,33 @@ +# Generated by Django 2.1.1 on 2019-01-31 23:53 + +import django.contrib.gis.db.models.fields +from django.db import migrations, models +import django.db.models.deletion +import django.utils.timezone + + +class Migration(migrations.Migration): + + dependencies = [ + ('locations', '0014_delete_mexstates'), + ] + + operations = [ + migrations.CreateModel( + name='LuxCheckIn', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('point', django.contrib.gis.db.models.fields.PointField(blank=True, srid=4326)), + ('date', models.DateField(default=django.utils.timezone.now)), + ('location_name', models.CharField(blank=True, max_length=200, null=True)), + ('state_name', models.CharField(blank=True, max_length=200, null=True)), + ('country_name', models.CharField(blank=True, max_length=200, null=True)), + ('region_name', models.CharField(blank=True, max_length=200, null=True)), + ('location', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Location')), + ], + options={ + 'ordering': ('-date',), + 'get_latest_by': 'date', + }, + ), + ] |