summaryrefslogtreecommitdiff
path: root/django/contrib/admin/options.py
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-07-18 15:37:14 +0200
committernessita <124304+nessita@users.noreply.github.com>2025-07-23 10:09:43 -0300
commit1ecf6889cabc9f3f60d3fdd651468cddd8f4da6e (patch)
tree77eebf89eaf5f1ee6f5947a962caa67b5cca7f4b /django/contrib/admin/options.py
parent1909108f9f0f2a91c1ec0fcdb65b01f58743a871 (diff)
Removed double spaces after periods and within phrases.
Diffstat (limited to 'django/contrib/admin/options.py')
-rw-r--r--django/contrib/admin/options.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py
index 1ab136062c..fc1c3f1eda 100644
--- a/django/contrib/admin/options.py
+++ b/django/contrib/admin/options.py
@@ -250,7 +250,7 @@ class BaseModelAdmin(metaclass=forms.MediaDefiningClass):
def get_field_queryset(self, db, db_field, request):
"""
If the ModelAdmin specifies ordering, the queryset should respect that
- ordering. Otherwise don't specify the queryset, let the field decide
+ ordering. Otherwise don't specify the queryset, let the field decide
(return None in that case).
"""
try:
@@ -1047,7 +1047,7 @@ class ModelAdmin(BaseModelAdmin):
def get_action_choices(self, request, default_choices=models.BLANK_CHOICE_DASH):
"""
- Return a list of choices for use in a form object. Each choice is a
+ Return a list of choices for use in a form object. Each choice is a
tuple (name, description).
"""
choices = [*default_choices]
@@ -1059,7 +1059,7 @@ class ModelAdmin(BaseModelAdmin):
def get_action(self, action):
"""
Return a given action from a parameter, which can either be a callable,
- or the name of a method on the ModelAdmin. Return is a tuple of
+ or the name of a method on the ModelAdmin. Return is a tuple of
(callable, name, description).
"""
# If the action is a callable, just use it.