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

Stephen Finucane stephenfinucane at hotmail.com
Sun Aug 14 09:08:40 AEST 2016


On 09 Aug 14:27, 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.
> 
> Reviewed-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>
> Signed-off-by: Daniel Axtens <dja at axtens.net>

Thanks for taking the time to fix this.

Reviewed-by: Stephen Finucane <stephenfinucane at hotmail.com>


More information about the Patchwork mailing list