Skip to content

Commit

Permalink
Update quote in relations.md (encode#6373)
Browse files Browse the repository at this point in the history
  • Loading branch information
carltongibson authored and tomchristie committed Dec 21, 2018
1 parent 63e6bbf commit 86aa776
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/api-guide/relations.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down Expand Up @@ -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:https://lwn.net/Articles/193245/
[cite]: http:https://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
Expand Down

0 comments on commit 86aa776

Please sign in to comment.