mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Fix whitespace in imports
This commit is contained in:
parent
7b58a2c124
commit
5c19652080
|
@ -10,6 +10,7 @@ from django.utils import six
|
||||||
from django.utils.encoding import force_text, iri_to_uri
|
from django.utils.encoding import force_text, iri_to_uri
|
||||||
from django.utils.html import escape, format_html, smart_urlquote
|
from django.utils.html import escape, format_html, smart_urlquote
|
||||||
from django.utils.safestring import SafeData, mark_safe
|
from django.utils.safestring import SafeData, mark_safe
|
||||||
|
|
||||||
from rest_framework.compat import apply_markdown, pygments_highlight
|
from rest_framework.compat import apply_markdown, pygments_highlight
|
||||||
from rest_framework.renderers import HTMLFormRenderer
|
from rest_framework.renderers import HTMLFormRenderer
|
||||||
from rest_framework.utils.urls import replace_query_param
|
from rest_framework.utils.urls import replace_query_param
|
||||||
|
|
|
@ -19,7 +19,6 @@ from rest_framework.utils.representation import smart_repr
|
||||||
# Robust filter and exist implementations. Ensures that queryset.exists() for
|
# Robust filter and exist implementations. Ensures that queryset.exists() for
|
||||||
# an invalid value returns `False`, rather than raising an error.
|
# an invalid value returns `False`, rather than raising an error.
|
||||||
# Refs https://github.com/encode/django-rest-framework/issues/3381
|
# Refs https://github.com/encode/django-rest-framework/issues/3381
|
||||||
|
|
||||||
def qs_exists(queryset):
|
def qs_exists(queryset):
|
||||||
try:
|
try:
|
||||||
return queryset.exists()
|
return queryset.exists()
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
from tests import importable
|
from tests import importable
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -33,9 +33,9 @@ indented
|
||||||
}]
|
}]
|
||||||
```"""
|
```"""
|
||||||
|
|
||||||
|
|
||||||
# If markdown is installed we also test it's working
|
# If markdown is installed we also test it's working
|
||||||
# (and that our wrapped forces '=' to h2 and '-' to h3)
|
# (and that our wrapped forces '=' to h2 and '-' to h3)
|
||||||
|
|
||||||
MARKED_DOWN_HILITE = """
|
MARKED_DOWN_HILITE = """
|
||||||
<div class="highlight"><pre><span></span><span \
|
<div class="highlight"><pre><span></span><span \
|
||||||
class="p">[{</span><br /> <span class="nt">"alpha"</span><span\
|
class="p">[{</span><br /> <span class="nt">"alpha"</span><span\
|
||||||
|
|
|
@ -10,7 +10,6 @@ from tests.test_multitable_inheritance import ChildModel
|
||||||
|
|
||||||
|
|
||||||
# Regression test for #4290
|
# Regression test for #4290
|
||||||
|
|
||||||
class ChildAssociatedModel(RESTFrameworkModel):
|
class ChildAssociatedModel(RESTFrameworkModel):
|
||||||
child_model = models.OneToOneField(ChildModel, on_delete=models.CASCADE)
|
child_model = models.OneToOneField(ChildModel, on_delete=models.CASCADE)
|
||||||
child_name = models.CharField(max_length=100)
|
child_name = models.CharField(max_length=100)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user