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.html import escape, format_html, smart_urlquote
|
||||
from django.utils.safestring import SafeData, mark_safe
|
||||
|
||||
from rest_framework.compat import apply_markdown, pygments_highlight
|
||||
from rest_framework.renderers import HTMLFormRenderer
|
||||
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
|
||||
# an invalid value returns `False`, rather than raising an error.
|
||||
# Refs https://github.com/encode/django-rest-framework/issues/3381
|
||||
|
||||
def qs_exists(queryset):
|
||||
try:
|
||||
return queryset.exists()
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
from django.conf import settings
|
||||
|
||||
from tests import importable
|
||||
|
||||
|
||||
|
|
|
@ -33,9 +33,9 @@ indented
|
|||
}]
|
||||
```"""
|
||||
|
||||
|
||||
# If markdown is installed we also test it's working
|
||||
# (and that our wrapped forces '=' to h2 and '-' to h3)
|
||||
|
||||
MARKED_DOWN_HILITE = """
|
||||
<div class="highlight"><pre><span></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
|
||||
|
||||
class ChildAssociatedModel(RESTFrameworkModel):
|
||||
child_model = models.OneToOneField(ChildModel, on_delete=models.CASCADE)
|
||||
child_name = models.CharField(max_length=100)
|
||||
|
|
Loading…
Reference in New Issue
Block a user