Entries published on March 4, 2019
Contributing to classiness (in Django)
A couple weeks ago I ran a poll on Twitter asking people whether they’d ever used, or considered using, the
contribute_to_class() method to write something that attaches to or hooks into a Django ORM model class, and if so what their thoughts were. There was also a “don’t know what that is” option, which won by a large margin, and I promised I’d provide an explanation.
Unfortunately, that was around the time I suffered a kitchen accident which left me without full use of my left hand for a bit. Full ...