[PATCH v2 1/6] Fix failure to start with uninitalised database

Andrew Donnellan andrew.donnellan at au1.ibm.com
Mon Aug 8 17:02:15 AEST 2016


On 04/08/16 16:10, Daniel Axtens wrote:
> An OptionalModelChoiceField will attempt to query the database to get choices
> in its __init__ method. This fails if the database hasn't been initialised
> yet. So, put that in a try/catch block. This lets things work through the
> migration and loading of data from fixtures.
>
> Signed-off-by: Daniel Axtens <dja at axtens.net>

Reviewed-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>

-- 
Andrew Donnellan              OzLabs, ADL Canberra
andrew.donnellan at au1.ibm.com  IBM Australia Limited



More information about the Patchwork mailing list