Skip to content

Commit

Permalink
refs #908. Fixes export sizes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Littman committed May 30, 2018
1 parent 1658a73 commit 364e2a3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions sfm/ui/migrations/0019_auto_20180530_1831.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('ui', '0018_auto_20171005_1213'),
]

operations = [
migrations.AlterField(
model_name='export',
name='export_format',
field=models.CharField(default=b'xlsx', max_length=10, choices=[(b'xlsx', b'Excel (XLSX)'), (b'csv', b'Comma separated values (CSV)'), (b'tsv', b'Tab separated values (TSV)'), (b'json_full', b'Full JSON'), (b'json', b'JSON of limited fields'), (b'dehydrate', b'Text file of identifiers (dehydrate)')]),
),
migrations.AlterField(
model_name='export',
name='export_segment_size',
field=models.BigIntegerField(default=250000, null=True, blank=True, choices=[(100000, b'100,000'), (250000, b'250,000'), (500000, b'500,000'), (100000, b'1,000,000'), (None, b'Single file')]),
),
]
4 changes: 2 additions & 2 deletions sfm/ui/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,8 +781,8 @@ class Export(models.Model):
SEGMENT_CHOICES = [
(100000, "100,000"),
(250000, "250,000"),
(5000000, "500,000"),
(10000000, "1,000,000"),
(500000, "500,000"),
(100000, "1,000,000"),
(None, "Single file"),
]
user = models.ForeignKey(User, related_name='exports')
Expand Down

0 comments on commit 364e2a3

Please sign in to comment.