pandora/pandora/place/migrations/0002_auto_20160304_1644.py
Will Thompson 0c98cd080e Entity.alternativeNames: default to () not [] (fixes #2896)
Otherwise this:

    self.name_find = '||' + '||'.join((self.name,) + self.alternativeNames) + '||'
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

fails because () + [] is an error. I guess this must have been
introduced by the DictField/TupleField rewrite.

Without this fix, it is impossible to create a new entity.

Basically the same logic is used for Event and Place too so I've made
the same change to those, and, in passing, fix another copy of the bug
fixed for Entity.name_find in fe7f961.
2016-03-04 17:11:36 +00:00

21 lines
468 B
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-03-04 16:44
from __future__ import unicode_literals
from django.db import migrations
import oxdjango.fields
class Migration(migrations.Migration):
dependencies = [
('place', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='place',
name='alternativeNames',
field=oxdjango.fields.TupleField(default=()),
),
]