Note: This section of the site is under heavy construction, tread carefully.

Bookmarks tagged with “orm”


Django filter - filter(A).filter(B) vs filter(A, B)

"Sometimes, when chaining filters together – SomeModels.objects.filter(a=A).filter(b=B) – we get duplicate objects in our queryset. In this article, we’ll explore & explain why."

Bookmarked on #





Modeling Polymorphism in Django With Python

Modeling polymorphism in relational databases can be a challenging task, but in this article, you'll learn several modeling techniques to represent polymorphic objects in a relational database using the Django object-relational mapping (ORM).

Bookmarked on #