Paolo Redaelli personal blog

Category: Django

Multiple fields primary keys in Django

I’m developing a little application in Django. Having developed a subtle dislike for UUIDs used as primary keys I tend to rely of the “natural keys” which are almost always identificable in a data model. Often thought those keys span over several fields. Think about a receipt of a multi-store multi-cashier store, their receipts are…