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:
committed by
Mariusz Felisiak
parent
687cb38a05
commit
abea86f9e4
@@ -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',
|
||||
)
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user