Generic object handling in Django.