Skip to content

Commit

Permalink
Attempted API fix
Browse files Browse the repository at this point in the history
Based on the error and where it occurs, it seems we have an "out of range"
issue in the DataFileKey datafile_id field. Hopefully this fixes it.
  • Loading branch information
madprime committed Dec 22, 2020
1 parent 31c5498 commit ad760a8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions data_import/migrations/0024_auto_20201222_1757.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Generated by Django 2.2.13 on 2020-12-22 17:57

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [("data_import", "0023_auto_20191106_2330")]

operations = [
migrations.AlterField(
model_name="datafilekey", name="datafile_id", field=models.BigIntegerField()
)
]
2 changes: 1 addition & 1 deletion data_import/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class DataFileKey(models.Model):

created = models.DateTimeField(auto_now_add=True)
key = models.CharField(max_length=36, blank=False, unique=True, default=uuid.uuid4)
datafile_id = models.IntegerField()
datafile_id = models.BigIntegerField()
ip_address = models.GenericIPAddressField(null=True)
access_token = models.CharField(max_length=64, null=True)
project_id = models.IntegerField(null=True)
Expand Down

0 comments on commit ad760a8

Please sign in to comment.