diff options
| author | Xavier Ordoquy | 2013-01-03 11:41:07 +0100 |
|---|---|---|
| committer | Xavier Ordoquy | 2013-01-03 11:41:07 +0100 |
| commit | 60250f22c8e144494f372338c16a2167cccb319d (patch) | |
| tree | a467ab51837175ab29abec7eb22bb936375763da /rest_framework/relations.py | |
| parent | cf51dcc9bb409fb985d5aa09c426d1ed33f6e9b4 (diff) | |
| download | django-rest-framework-60250f22c8e144494f372338c16a2167cccb319d.tar.bz2 | |
Move the various compat things to the compat module.
Diffstat (limited to 'rest_framework/relations.py')
| -rw-r--r-- | rest_framework/relations.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/rest_framework/relations.py b/rest_framework/relations.py index 33d3732f..b7a6e0c1 100644 --- a/rest_framework/relations.py +++ b/rest_framework/relations.py @@ -6,13 +6,10 @@ from django.core.urlresolvers import resolve, get_script_prefix from django import forms from django.forms import widgets from django.forms.models import ModelChoiceIterator -try: - from django.utils.encoding import smart_text -except ImportError: - from django.utils.encoding import smart_unicode as smart_text from rest_framework.fields import Field, WritableField from rest_framework.reverse import reverse from rest_framework.compat import urlparse +from rest_framework.compat import smart_text ##### Relational fields ##### |
