]> git.ozlabs.org Git - patchwork/commit
parsemail: run django.setup to initialise Models
authorJeremy Kerr <jk@ozlabs.org>
Fri, 29 May 2015 00:06:24 +0000 (08:06 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 29 May 2015 00:08:31 +0000 (08:08 +0800)
commitf916037f41cb88b169dbd071d4e0decd4d3ac06b
treed402962955265e0a5268761892e79367f66cfedc
parent85916e6c56076a29c6113e169d3e4926a7c886b1
parsemail: run django.setup to initialise Models

From 1.7 onwards, we need to call django.setup() before we can use the
Model interfaces.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
patchwork/bin/parsemail.py