pandora/pandora/place
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
..
migrations Entity.alternativeNames: default to () not [] (fixes #2896) 2016-03-04 17:11:36 +00:00
__init__.py split models into apps, new api interface 2010-11-26 16:07:24 +01:00
admin.py cleanup imports and syntax warnings 2011-01-01 17:14:42 +05:30
managers.py inline django 1.9 version of ox.django 2016-02-20 10:41:23 +00:00
models.py Entity.alternativeNames: default to () not [] (fixes #2896) 2016-03-04 17:11:36 +00:00
tasks.py cleanup unused imports and unused variables 2013-02-21 13:28:36 +00:00
views.py inline django 1.9 version of ox.django 2016-02-20 10:41:23 +00:00