Skip to content

Commit

Permalink
Merge pull request #46 from TransparentPath/add_radius
Browse files Browse the repository at this point in the history
/issues/45 : Add radius field in organization model - configure geofence radius
  • Loading branch information
Yasmin Ansari committed Mar 16, 2021
2 parents 4f5444a + 456813e commit 0d10269
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions core/migrations/0005_organization_radius.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 2.2.10 on 2021-03-16 12:57

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('core', '0004_organization_allow_import_export'),
]

operations = [
migrations.AddField(
model_name='organization',
name='radius',
field=models.FloatField(blank=True, max_length=20, null=True),
),
]
1 change: 1 addition & 0 deletions core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class Organization(models.Model):
date_format = models.CharField("Date Format", max_length=50, blank=True, default="DD.MM.YYYY")
phone = models.CharField(max_length=20, blank=True, null=True)
allow_import_export = models.BooleanField('To allow import export functionality', default=False)
radius = models.FloatField(max_length=20, blank=True, null=True)
class Meta:
ordering = ('name',)
verbose_name_plural = "Organizations"
Expand Down

0 comments on commit 0d10269

Please sign in to comment.