diff --git a/openbadge-server/openbadge/migrations/0005_auto_20180511_2151.py b/openbadge-server/openbadge/migrations/0005_auto_20180511_2151.py new file mode 100644 index 0000000..5291ce6 --- /dev/null +++ b/openbadge-server/openbadge/migrations/0005_auto_20180511_2151.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('openbadge', '0004_ids_and_beacons'), + ] + + operations = [ + migrations.AlterField( + model_name='beacon', + name='observed_id', + field=models.PositiveIntegerField(default=0), + ), + migrations.AlterField( + model_name='member', + name='observed_id', + field=models.PositiveIntegerField(default=0), + ), + ] diff --git a/openbadge-server/openbadge/models.py b/openbadge-server/openbadge/models.py index 1a54a27..9753cae 100644 --- a/openbadge-server/openbadge/models.py +++ b/openbadge-server/openbadge/models.py @@ -275,7 +275,7 @@ class Member(BaseModelMinimal): email = models.EmailField(null=True, blank=True) name = models.CharField(max_length=64) badge = models.CharField(max_length=64, unique=True) - observed_id = models.PositiveSmallIntegerField(default=0) + observed_id = models.PositiveIntegerField(default=0) active = models.BooleanField(default=True) comments = models.CharField(max_length=240, blank=True, default='') @@ -339,7 +339,7 @@ class Beacon(BaseModelMinimal): id = models.PositiveSmallIntegerField(primary_key=True, editable=False, unique=True, blank=True, validators=[MaxValueValidator(32000), MinValueValidator(16000)]) name = models.CharField(max_length=64) badge = models.CharField(max_length=64, unique=True) - observed_id = models.PositiveSmallIntegerField(default=0) + observed_id = models.PositiveIntegerField(default=0) active = models.BooleanField(default=True) comments = models.CharField(max_length=240, blank = True ,default='')