Hacker News new | ask | show | jobs
by EdwardDiego 1017 days ago
I figure if Django built an entire framework around metaprogramming, I'm going to do it to Django model objects as a form of vengeance.
1 comments

I want to see the malicious wonders you can create!
An easy way to start taking the fight back to the enemy is by overriding __new__ and tinkering with things before/after Django's metaclass __new__ does its own metafoolery.

Also overriding mro() is a fun way to monkey with the inner workings.