Skip to content

Commit

Permalink
Merge pull request #71 from OpenGeoscience/default-map-zoom-float
Browse files Browse the repository at this point in the history
Use FloatField for Project.default_map_zoom
  • Loading branch information
jjnesbitt authored Oct 1, 2024
2 parents 82dd93c + 6d84564 commit 6dae4c1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions uvdat/core/migrations/0006_alter_project_default_map_zoom.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 5.0.7 on 2024-10-01 20:53

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
('core', '0005_projects'),
]

operations = [
migrations.AlterField(
model_name='project',
name='default_map_zoom',
field=models.FloatField(default=10),
),
]
2 changes: 1 addition & 1 deletion uvdat/core/models/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class Project(models.Model):
name = models.CharField(max_length=255, unique=True)
default_map_center = geo_models.PointField()
default_map_zoom = models.IntegerField(default=10)
default_map_zoom = models.FloatField(default=10)
datasets = models.ManyToManyField(Dataset, blank=True)

@transaction.atomic()
Expand Down

0 comments on commit 6dae4c1

Please sign in to comment.