diff options
| author | Tom Christie | 2012-10-08 15:46:52 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-10-08 15:46:52 +0100 |
| commit | b581ffe323d88b6740abfed0fd552cc436fd2dcc (patch) | |
| tree | 9951f679a9ae2ba720066d8d7651d3dd9b4e1fdc | |
| parent | 9ade21c793fae70110925bb3bf1fae2fc54fe75e (diff) | |
| download | django-rest-framework-b581ffe323d88b6740abfed0fd552cc436fd2dcc.tar.bz2 | |
Docs tweaks
| -rw-r--r-- | docs/api-guide/fields.md | 4 | ||||
| -rw-r--r-- | docs/tutorial/1-serialization.md | 2 | ||||
| -rw-r--r-- | docs/tutorial/2-requests-and-responses.md | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md index 56c84981..e9833a97 100644 --- a/docs/api-guide/fields.md +++ b/docs/api-guide/fields.md @@ -30,6 +30,8 @@ A generic field that can be tied to any arbitrary model field. The `ModelField` **Signature:** `ModelField(model_field=<Django ModelField class>)` +--- + # Typed Fields These fields represent basic datatypes, and support both reading and writing values. @@ -48,6 +50,8 @@ These fields represent basic datatypes, and support both reading and writing val ## FloatField +--- + # Relational Fields 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`. diff --git a/docs/tutorial/1-serialization.md b/docs/tutorial/1-serialization.md index 6744eafe..e21433ba 100644 --- a/docs/tutorial/1-serialization.md +++ b/docs/tutorial/1-serialization.md @@ -89,7 +89,7 @@ We're going to create a simple Web API that we can use to edit these comment obj id = serializers.IntegerField(readonly=True) email = serializers.EmailField() content = serializers.CharField(max_length=200) - created = serializers.DateTimeField() + created = serializers.DateTimeField(readonly=True) def restore_object(self, attrs, instance=None): """ diff --git a/docs/tutorial/2-requests-and-responses.md b/docs/tutorial/2-requests-and-responses.md index 13feb254..7c8fc044 100644 --- a/docs/tutorial/2-requests-and-responses.md +++ b/docs/tutorial/2-requests-and-responses.md @@ -114,7 +114,7 @@ Now update the `urls.py` file slightly, to append a set of `format_suffix_patter from django.conf.urls import patterns, url from rest_framework.urlpatterns import format_suffix_patterns - urlpatterns = patterns('blogpost.views', + urlpatterns = patterns('blog.views', url(r'^$', 'comment_root'), url(r'^(?P<pk>[0-9]+)$', 'comment_instance') ) |
