Skip to content

Commit 7f5827a

Browse files
committed
[fix] Fixed migration to avoid Django warning for changed fallback values
1 parent 7b4883c commit 7f5827a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

openwisp_controller/geo/migrations/0005_organizationgeosettings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
import openwisp_utils.fields
1010

11+
from .. import settings as app_settings
12+
1113

1214
class Migration(migrations.Migration):
1315

@@ -34,7 +36,7 @@ class Migration(migrations.Migration):
3436
openwisp_utils.fields.FallbackBooleanChoiceField(
3537
blank=True,
3638
default=None,
37-
fallback=False,
39+
fallback=app_settings.ESTIMATED_LOCATION_ENABLED,
3840
help_text="Whether the estimated location feature is enabled",
3941
null=True,
4042
verbose_name="Estimated Location Enabled",

0 commit comments

Comments
 (0)