django-planet
March 4, 2019

Contributing to classiness (in Django)

published by James Bennett
in blog James Bennett
original entry 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 …

Read full entry