Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
c6d89afd
Commit
c6d89afd
authored
Jan 28, 2014
by
Xavier Ordoquy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define the upload_to for file fields.
parent
e4c25e0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
rest_framework/tests/models.py
+4
-4
No files found.
rest_framework/tests/models.py
View file @
c6d89afd
...
@@ -176,8 +176,8 @@ class AMOAFModel(RESTFrameworkModel):
...
@@ -176,8 +176,8 @@ class AMOAFModel(RESTFrameworkModel):
comma_separated_integer_field
=
models
.
CommaSeparatedIntegerField
(
max_length
=
1024
,
blank
=
True
)
comma_separated_integer_field
=
models
.
CommaSeparatedIntegerField
(
max_length
=
1024
,
blank
=
True
)
decimal_field
=
models
.
DecimalField
(
max_digits
=
64
,
decimal_places
=
32
,
blank
=
True
)
decimal_field
=
models
.
DecimalField
(
max_digits
=
64
,
decimal_places
=
32
,
blank
=
True
)
email_field
=
models
.
EmailField
(
max_length
=
1024
,
blank
=
True
)
email_field
=
models
.
EmailField
(
max_length
=
1024
,
blank
=
True
)
file_field
=
models
.
FileField
(
max_length
=
1024
,
blank
=
True
)
file_field
=
models
.
FileField
(
upload_to
=
'test'
,
max_length
=
1024
,
blank
=
True
)
image_field
=
models
.
ImageField
(
max_length
=
1024
,
blank
=
True
)
image_field
=
models
.
ImageField
(
upload_to
=
'test'
,
max_length
=
1024
,
blank
=
True
)
slug_field
=
models
.
SlugField
(
max_length
=
1024
,
blank
=
True
)
slug_field
=
models
.
SlugField
(
max_length
=
1024
,
blank
=
True
)
url_field
=
models
.
URLField
(
max_length
=
1024
,
blank
=
True
)
url_field
=
models
.
URLField
(
max_length
=
1024
,
blank
=
True
)
...
@@ -185,8 +185,8 @@ class DVOAFModel(RESTFrameworkModel):
...
@@ -185,8 +185,8 @@ class DVOAFModel(RESTFrameworkModel):
positive_integer_field
=
models
.
PositiveIntegerField
(
blank
=
True
)
positive_integer_field
=
models
.
PositiveIntegerField
(
blank
=
True
)
positive_small_integer_field
=
models
.
PositiveSmallIntegerField
(
blank
=
True
)
positive_small_integer_field
=
models
.
PositiveSmallIntegerField
(
blank
=
True
)
email_field
=
models
.
EmailField
(
blank
=
True
)
email_field
=
models
.
EmailField
(
blank
=
True
)
file_field
=
models
.
FileField
(
blank
=
True
)
file_field
=
models
.
FileField
(
upload_to
=
'test'
,
blank
=
True
)
image_field
=
models
.
ImageField
(
blank
=
True
)
image_field
=
models
.
ImageField
(
upload_to
=
'test'
,
blank
=
True
)
slug_field
=
models
.
SlugField
(
blank
=
True
)
slug_field
=
models
.
SlugField
(
blank
=
True
)
url_field
=
models
.
URLField
(
blank
=
True
)
url_field
=
models
.
URLField
(
blank
=
True
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment