pandora/pandora/event
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 events 2011-05-28 13:35:57 +02:00
admin.py events 2011-05-28 13:35:57 +02:00
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