From 86aa7768a7623e8eebacea81523f59de5cd02bd7 Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Fri, 21 Dec 2018 12:39:01 +0100 Subject: [PATCH] Update quote in relations.md (#6373) Fixes #6372. --- docs/api-guide/relations.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/api-guide/relations.md b/docs/api-guide/relations.md index 6a865b7d1..3cee14805 100644 --- a/docs/api-guide/relations.md +++ b/docs/api-guide/relations.md @@ -2,11 +2,9 @@ source: relations.py # Serializer relations -> Bad programmers worry about the code. -> Good programmers worry about data structures and their relationships. +> Data structures, not algorithms, are central to programming. > -> — [Linus Torvalds][cite] - +> — [Rob Pike][cite] Relational fields are used to represent model relationships. They can be applied to `ForeignKey`, `ManyToManyField` and `OneToOneField` relationships, as well as to reverse relationships, and custom relationships such as `GenericForeignKey`. @@ -592,7 +590,7 @@ The [drf-nested-routers package][drf-nested-routers] provides routers and relati The [rest-framework-generic-relations][drf-nested-relations] library provides read/write serialization for generic foreign keys. -[cite]: https://lwn.net/Articles/193245/ +[cite]: http://users.ece.utexas.edu/~adnan/pike.html [reverse-relationships]: https://docs.djangoproject.com/en/stable/topics/db/queries/#following-relationships-backward [routers]: https://www.django-rest-framework.org/api-guide/routers#defaultrouter [generic-relations]: https://docs.djangoproject.com/en/stable/ref/contrib/contenttypes/#id1