
import django.contrib.gis.db.models.fields
from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('outdoor', '0031_course_parent_sites'),
    ]

    operations = [
        migrations.AddField(
            model_name='course',
            name='points_reference',
            field=django.contrib.gis.db.models.fields.MultiPointField(blank=True, null=True, spatial_index=False, srid=2154, verbose_name='Points of reference'),
        ),
    ]


from django.conf import settings
import django.contrib.gis.db.models.fields
from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('outdoor', '0031_course_parent_sites'),
    ]

    operations = [
        migrations.AddField(
            model_name='course',
            name='points_reference',
            field=django.contrib.gis.db.models.fields.MultiPointField(blank=True, null=True, spatial_index=False, srid=settings.SRID, verbose_name='Points of reference'),
        ),
    ]

Use settings SRID in migration
Use settings SRID in migration

  
+ from django.conf import settings
  import django.contrib.gis.db.models.fields
  from django.db import migrations
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('outdoor', '0031_course_parent_sites'),
      ]
  
      operations = [
          migrations.AddField(
              model_name='course',
              name='points_reference',
-             field=django.contrib.gis.db.models.fields.MultiPointField(blank=True, null=True, spatial_index=False, srid=2154, verbose_name='Points of reference'),
+             field=django.contrib.gis.db.models.fields.MultiPointField(blank=True, null=True, spatial_index=False, srid=settings.SRID, verbose_name='Points of reference'),
          ),
      ]
  
Use settings SRID in migration
## Code Before:

import django.contrib.gis.db.models.fields
from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('outdoor', '0031_course_parent_sites'),
    ]

    operations = [
        migrations.AddField(
            model_name='course',
            name='points_reference',
            field=django.contrib.gis.db.models.fields.MultiPointField(blank=True, null=True, spatial_index=False, srid=2154, verbose_name='Points of reference'),
        ),
    ]

## Instruction:
Use settings SRID in migration
## Code After:

from django.conf import settings
import django.contrib.gis.db.models.fields
from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('outdoor', '0031_course_parent_sites'),
    ]

    operations = [
        migrations.AddField(
            model_name='course',
            name='points_reference',
            field=django.contrib.gis.db.models.fields.MultiPointField(blank=True, null=True, spatial_index=False, srid=settings.SRID, verbose_name='Points of reference'),
        ),
    ]
