First attempt - get product by primary key: class ProductRepository: def get_by_pk(self, pk): return Product.objects.get(pk=pk) ProductRepository is stateless, use static methods. Usage

» Luke Plant | lukeplant.me.uk