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
8ec54e6a
Commit
8ec54e6a
authored
Nov 02, 2012
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaks
parent
6eaec7a0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
rest_framework/fields.py
+1
-1
rest_framework/runtests/runcoverage.py
+2
-2
rest_framework/tests/pk_relations.py
+1
-1
No files found.
rest_framework/fields.py
View file @
8ec54e6a
...
...
@@ -344,7 +344,7 @@ class ManyRelatedField(ManyRelatedMixin, RelatedField):
"""
Base class for related model managers.
If not overridden, this represents a to-many relatinship, using the unicode
If not overridden, this represents a to-many relati
o
nship, using the unicode
representations of the target, and is read-only.
"""
pass
...
...
rest_framework/runtests/runcoverage.py
View file @
8ec54e6a
...
...
@@ -32,10 +32,10 @@ def main():
'Function-based test runners are deprecated. Test runners should be classes with a run_tests() method.'
,
DeprecationWarning
)
failures
=
TestRunner
([
'
rest_framework
'
])
failures
=
TestRunner
([
'
tests
'
])
else
:
test_runner
=
TestRunner
()
failures
=
test_runner
.
run_tests
([
'
rest_framework
'
])
failures
=
test_runner
.
run_tests
([
'
tests
'
])
cov
.
stop
()
# Discover the list of all modules that we should test coverage for
...
...
rest_framework/tests/pk_relations.py
View file @
8ec54e6a
...
...
@@ -38,7 +38,7 @@ class ForeignKeySource(models.Model):
class
ForeignKeyTargetSerializer
(
serializers
.
ModelSerializer
):
sources
=
serializers
.
ManyPrimaryKeyRelatedField
(
queryset
=
ForeignKeySource
.
objects
.
all
()
)
sources
=
serializers
.
ManyPrimaryKeyRelatedField
(
read_only
=
True
)
class
Meta
:
model
=
ForeignKeyTarget
...
...
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