aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/fields.py
diff options
context:
space:
mode:
authorTom Christie2013-01-30 12:41:26 +0000
committerTom Christie2013-01-30 12:41:26 +0000
commit9a4d01d687d57601d37f9a930d37039cb9f6a6f2 (patch)
treef403fc83fccafe9f93acc5f25784955c058d82b4 /rest_framework/fields.py
parent4601487248ef76537e5e3fda17ae7220191dbad9 (diff)
downloaddjango-rest-framework-9a4d01d687d57601d37f9a930d37039cb9f6a6f2.tar.bz2
Formatting fixes
Diffstat (limited to 'rest_framework/fields.py')
-rw-r--r--rest_framework/fields.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/rest_framework/fields.py b/rest_framework/fields.py
index 998911e1..a788ecf2 100644
--- a/rest_framework/fields.py
+++ b/rest_framework/fields.py
@@ -325,7 +325,8 @@ class ChoiceField(WritableField):
form_field_class = forms.ChoiceField
widget = widgets.Select
default_error_messages = {
- 'invalid_choice': _('Select a valid choice. %(value)s is not one of the available choices.'),
+ 'invalid_choice': _('Select a valid choice. %(value)s is not one of '
+ 'the available choices.'),
}
def __init__(self, choices=(), *args, **kwargs):
@@ -612,7 +613,8 @@ class ImageField(FileField):
form_field_class = forms.ImageField
default_error_messages = {
- 'invalid_image': _("Upload a valid image. The file you uploaded was either not an image or a corrupted image."),
+ 'invalid_image': _("Upload a valid image. The file you uploaded was "
+ "either not an image or a corrupted image."),
}
def from_native(self, data):