Skip to content

Commit

Permalink
Merge pull request #1150 from PyBossa/fix-json-default
Browse files Browse the repository at this point in the history
Add for default an empty dict.
  • Loading branch information
teleyinex committed Jul 20, 2015
2 parents 98f1740 + db7cc4a commit ce0b535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybossa/model/project.py
Expand Up @@ -70,7 +70,7 @@ class Project(db.Model, DomainObject):
#: Project Category
category_id = Column(Integer, ForeignKey('category.id'), nullable=False)
#: Project info field formatted as JSON
info = Column(MutableDict.as_mutable(JSON))
info = Column(MutableDict.as_mutable(JSON), default=dict())

tasks = relationship(Task, cascade='all, delete, delete-orphan', backref='project')
task_runs = relationship(TaskRun, backref='project',
Expand Down

0 comments on commit ce0b535

Please sign in to comment.