Skip to content

Commit

Permalink
πŸ› Fix migration use settings.SRID
Browse files Browse the repository at this point in the history
  • Loading branch information
LePetitTim committed May 15, 2023
1 parent 520b6a0 commit 67ee9b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion georiviere/watershed/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

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

Expand Down Expand Up @@ -30,7 +31,7 @@ class Migration(migrations.Migration):
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=250, verbose_name='Name')),
('geom', django.contrib.gis.db.models.fields.MultiPolygonField(srid=2154)),
('geom', django.contrib.gis.db.models.fields.MultiPolygonField(srid=settings.SRID)),
('eid', models.CharField(blank=True, default=None, max_length=1024, null=True, unique=True, verbose_name='External id')),
('watershed_type', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='watershed.watershedtype', verbose_name='Watershed')),
],
Expand Down

0 comments on commit 67ee9b2

Please sign in to comment.