4 ms·
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.
by EdwardDiego 3y 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.
- kstrauser 3y agoI want to see the malicious wonders you can create!
- EdwardDiego 3y agoAn 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.