<commit_before># Generated by Django 3.2.15 on 2022-09-27 15:01

import django.contrib.gis.db.models.fields
import django.contrib.postgres.indexes
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('tourism', '0026_auto_20220907_1400'),
    ]

    operations = [
        migrations.CreateModel(
            name='TouristicEventPlace',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=256)),
                ('geom', django.contrib.gis.db.models.fields.PointField(spatial_index=False, srid=2154)),
            ],
            options={
                'verbose_name': 'Place',
                'verbose_name_plural': 'Places',
                'ordering': ['name'],
            },
        ),
        migrations.AddIndex(
            model_name='touristiceventplace',
            index=django.contrib.postgres.indexes.GistIndex(fields=['geom'], name='place_geom_gist_idx'),
        ),
        migrations.AddField(
            model_name='touristicevent',
            name='place',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='touristicevents', to='tourism.touristiceventplace', verbose_name='Place'),
        ),
    ]<commit_msg>Parametrize SRID in migration<commit_after># Generated by Django 3.2.15 on 2022-09-27 15:01


import django.contrib.gis.db.models.fields
import django.contrib.postgres.indexes
from django.db import migrations, models
from django.conf import settings
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('tourism', '0026_auto_20220907_1400'),
    ]

    operations = [
        migrations.CreateModel(
            name='TouristicEventPlace',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=256)),
                ('geom', django.contrib.gis.db.models.fields.PointField(spatial_index=False, srid=settings.SRID)),
            ],
            options={
                'verbose_name': 'Place',
                'verbose_name_plural': 'Places',
                'ordering': ['name'],
            },
        ),
        migrations.AddIndex(
            model_name='touristiceventplace',
            index=django.contrib.postgres.indexes.GistIndex(fields=['geom'], name='place_geom_gist_idx'),
        ),
        migrations.AddField(
            model_name='touristicevent',
            name='place',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='touristicevents', to='tourism.touristiceventplace', verbose_name='Place'),
        ),
    ]
{'fraction_non_alphanumeric': 0.12694032424974128, 'fraction_numerical': 0.025526043463263193, 'mean_word_length': 2.5935563816604708, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4148858', 'n_tokens_mistral': 930, 'n_tokens_neox': 849, 'n_words': 121}