-
Django’s generic relations
-
This is really hot stuff.
# (Snip model creation) >>> tiger, bear = Animal(common_name="tiger"), Animal(common_name="bear"), >>> tiger.comparisons.create(other_obj=bear, comparative="cooler") <Comparison: tiger is cooler than bear>