mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Add note on * import
This commit is contained in:
parent
b7b942c599
commit
dfb8225447
|
@ -6,6 +6,15 @@ from django.db import models
|
||||||
from django.forms import widgets
|
from django.forms import widgets
|
||||||
from django.utils.datastructures import SortedDict
|
from django.utils.datastructures import SortedDict
|
||||||
from rest_framework.compat import get_concrete_model
|
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 *
|
from rest_framework.fields import *
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user