mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-03-19 17:34:13 +03:00
fixing compat with py25
This commit is contained in:
parent
d866f2177e
commit
b4a076c822
|
@ -165,7 +165,10 @@ class AllowedMethodsTests(TestCase):
|
|||
|
||||
#above testcases need to probably moved to the core
|
||||
from djangorestframework.compat import RequestFactory
|
||||
import json
|
||||
try:
|
||||
import json
|
||||
except ImportError:
|
||||
import simplejson as json
|
||||
|
||||
class TestRotation(TestCase):
|
||||
"""For the example the maximum amount of Blogposts is capped off at views.MAX_POSTS.
|
||||
|
|
Loading…
Reference in New Issue
Block a user