Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5894b52

Browse files
Reformat code using black & isort
1 parent cc834af commit 5894b52

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

‎django_select2/conf.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class Select2Conf(AppConf):
198198
``settings.DJANGO_SELECT2_I18N`` refers to :attr:`.I18N_PATH`.
199199
"""
200200

201-
JSON_ENCODER = 'django.core.serializers.json.DjangoJSONEncoder'
201+
JSON_ENCODER = "django.core.serializers.json.DjangoJSONEncoder"
202202
"""
203203
A :class:`JSONEncoder<json.JSONEncoder>` used to generate the API response for the model widgets.
204204

‎django_select2/views.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
from django.core import signing
33
from django.core.signing import BadSignature
44
from django.http import Http404, JsonResponse
5-
from django.views.generic.list import BaseListView
65
from django.utils.module_loading import import_string
6+
from django.views.generic.list import BaseListView
77

88
from .cache import cache
99
from .conf import settings
@@ -45,7 +45,7 @@ def get(self, request, *args, **kwargs):
4545
],
4646
"more": context["page_obj"].has_next(),
4747
},
48-
encoder=import_string(settings.SELECT2_JSON_ENCODER)
48+
encoder=import_string(settings.SELECT2_JSON_ENCODER),
4949
)
5050

5151
def get_queryset(self):

‎tests/conftest.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77

88

99
def pytest_configure(config):
10-
config.addinivalue_line(
11-
"markers", "selenium: skip if selenium is not installed"
12-
)
10+
config.addinivalue_line("markers", "selenium: skip if selenium is not installed")
11+
1312

1413
def random_string(n):
1514
return "".join(

‎tests/test_forms.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
HeavySelect2Widget,
2121
ModelSelect2TagWidget,
2222
ModelSelect2Widget,
23-
Select2Widget,
2423
Select2AdminMixin,
24+
Select2Widget,
2525
)
2626
from tests.testapp import forms
2727
from tests.testapp.forms import (

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /