Prevent error when goal is accessed by lazy user.
Fix some Django depricated constructs.