mirror of
https://github.com/django/django.git
synced 2025-10-27 15:46:10 +00:00
Removed unnecessary parens in various code.
This commit is contained in:
committed by
Tim Graham
parent
ee4043f735
commit
0ec0e5029c
@@ -240,7 +240,7 @@ class BaseModelAdmin(metaclass=forms.MediaDefiningClass):
|
||||
|
||||
if db_field.name in self.raw_id_fields:
|
||||
kwargs['widget'] = widgets.ManyToManyRawIdWidget(db_field.remote_field, self.admin_site, using=db)
|
||||
elif db_field.name in (list(self.filter_vertical) + list(self.filter_horizontal)):
|
||||
elif db_field.name in list(self.filter_vertical) + list(self.filter_horizontal):
|
||||
kwargs['widget'] = widgets.FilteredSelectMultiple(
|
||||
db_field.verbose_name,
|
||||
db_field.name in self.filter_vertical
|
||||
|
||||
@@ -61,7 +61,7 @@ def inject_rename_contenttypes_operations(plan=None, apps=global_apps, using=DEF
|
||||
available = True
|
||||
|
||||
for migration, backward in plan:
|
||||
if ((migration.app_label, migration.name) == ('contenttypes', '0001_initial')):
|
||||
if (migration.app_label, migration.name) == ('contenttypes', '0001_initial'):
|
||||
# There's no point in going forward if the initial contenttypes
|
||||
# migration is unapplied as the ContentType model will be
|
||||
# unavailable from this point.
|
||||
|
||||
Reference in New Issue
Block a user