Argh. Django's .get_profile() caches the UserProfile, which can cause surprises if you're modifying the profile elsewhere.
miniblog.
Related Posts
Inter-Procedural Optimization and Derefinement https://www.playingwithpointers.com/ipo-and-derefinement.html (excellent post showing how combining optimzns can cause surprises)