Skip to content

Commit

Permalink
Change Project pybossa_url from URLField to CharField to allow saving…
Browse files Browse the repository at this point in the history
… 'http://pybossa'
  • Loading branch information
normangilmore committed Jun 7, 2017
1 parent 350a5c4 commit 40f5321
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions thresher/migrations/0002_auto_20170607_1544.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-07 15:44
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('thresher', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='project',
name='pybossa_url',
field=models.CharField(blank=True, default=b'', max_length=200),
),
]
4 changes: 2 additions & 2 deletions thresher/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ class Project(models.Model):
instructions = models.TextField()
task_type = models.CharField(max_length=4,
choices=TASK_TYPE, default="HLTR")
# following fields are null unless remote Pybossa project has been created
pybossa_url = models.URLField(blank=True, default="")
# following fields are empty/null unless remote Pybossa project has been created
pybossa_url = models.CharField(blank=True, max_length=200, default="")
pybossa_id = models.IntegerField(null=True)
pybossa_owner_id = models.IntegerField(null=True)
# UUID format is 36 chars including hyphens
Expand Down

0 comments on commit 40f5321

Please sign in to comment.