Cannot return from init function.
Update for django 1.7