Skip to content

Commit 773ac70

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 59aea51 commit 773ac70

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

sortedm2m/admin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from django import forms
22
from django.conf import settings
3-
from django.utils import translation
43
from django.contrib.admin.widgets import AutocompleteSelectMultiple
4+
from django.utils import translation
5+
56

67
class OrderedAutocomplete(AutocompleteSelectMultiple):
78
def optgroups(self, name, value, attr=None):
@@ -48,7 +49,7 @@ def optgroups(self, name, value, attr=None):
4849
class Media:
4950
extra = "" if settings.DEBUG else ".min"
5051
lang = translation.get_language()
51-
js = (
52+
js = (
5253
"admin/js/vendor/jquery/jquery%s.js" % extra,
5354
"admin/js/vendor/select2/select2.full%s.js" % extra,
5455
) + (

sortedm2m/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def set(self, objs, *, clear=False, through_defaults=None):
5555
# Force evaluation of `objs` in case it's a queryset whose value
5656
# could be affected by `manager.clear()`. Refs #19816.
5757
# objs = tuple(objs)
58-
58+
5959
db = router.db_for_write(self.through, instance=self.instance)
6060
with transaction.atomic(using=db, savepoint=False):
6161
old_ids = list(

sortedm2m/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@ def has_changed(self, initial, data):
106106
class SortedCheckboxMultipleChoiceField(SortedMultipleChoiceField):
107107
widget = SortedCheckboxSelectMultiple
108108

109-
109+

0 commit comments

Comments
 (0)