1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Removed unnecessary tuple wrapping of single format string argument.

This commit is contained in:
François Freitag
2020-04-25 15:53:30 +02:00
committed by Mariusz Felisiak
parent 687cb38a05
commit abea86f9e4
12 changed files with 15 additions and 15 deletions

View File

@@ -221,7 +221,7 @@ class Field(RegisterLookupMixin):
elif LOOKUP_SEP in self.name:
return [
checks.Error(
'Field names must not contain "%s".' % (LOOKUP_SEP,),
'Field names must not contain "%s".' % LOOKUP_SEP,
obj=self,
id='fields.E002',
)

View File

@@ -133,7 +133,7 @@ class RelatedField(FieldCacheMixin, Field):
errors.append(
checks.Error(
"Reverse query name '%s' must not end with an underscore."
% (rel_query_name,),
% rel_query_name,
hint=("Add or change a related_name or related_query_name "
"argument for this field."),
obj=self,