Skip to content

Commit

Permalink
refactor: Use FloatField for Context.default_map_zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnesbitt committed Sep 25, 2024
1 parent ad426e9 commit 085b9ba
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/0005_alter_context_default_map_zoom.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.1 on 2024-09-25 20:45

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
('core', '0004_files_and_networks'),
]

operations = [
migrations.AlterField(
model_name='context',
name='default_map_zoom',
field=models.FloatField(default=10),
),
]
2 changes: 1 addition & 1 deletion uvdat/core/models/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
class Context(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)

0 comments on commit 085b9ba

Please sign in to comment.