diff options
| author | Tom Christie | 2012-11-05 10:56:30 +0000 |
|---|---|---|
| committer | Tom Christie | 2012-11-05 10:56:30 +0000 |
| commit | dfb8225447597fb22544c1e67e2677d15f92d698 (patch) | |
| tree | 04c66695aa1b8029aebf64ba58efcf124622c55f /rest_framework/serializers.py | |
| parent | b7b942c5991e677e7df621c00befb075d06edd61 (diff) | |
| download | django-rest-framework-dfb8225447597fb22544c1e67e2677d15f92d698.tar.bz2 | |
Add note on * import
Diffstat (limited to 'rest_framework/serializers.py')
| -rw-r--r-- | rest_framework/serializers.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py index 92b179fa..68b76ed6 100644 --- a/rest_framework/serializers.py +++ b/rest_framework/serializers.py @@ -6,6 +6,15 @@ from django.db import models from django.forms import widgets from django.utils.datastructures import SortedDict from rest_framework.compat import get_concrete_model + +# Note: We do the following so that users of the framework can use this style: +# +# example_field = serializers.CharField(...) +# +# This helps keep the seperation between model fields, form fields, and +# serializer fields more explicit. + + from rest_framework.fields import * |
