mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Removed unneeded hint=None/obj=None in system check messages.
This commit is contained in:
parent
36f1f5cfb0
commit
004ba0f99e
30 changed files with 287 additions and 495 deletions
|
@ -9,19 +9,7 @@ class ModelRaisingMessages(models.Model):
|
|||
@classmethod
|
||||
def check(self, **kwargs):
|
||||
return [
|
||||
checks.Warning(
|
||||
'First warning',
|
||||
hint='Hint',
|
||||
obj='obj'
|
||||
),
|
||||
checks.Warning(
|
||||
'Second warning',
|
||||
hint=None,
|
||||
obj='a'
|
||||
),
|
||||
checks.Error(
|
||||
'An error',
|
||||
hint='Error hint',
|
||||
obj=None,
|
||||
)
|
||||
checks.Warning('First warning', hint='Hint', obj='obj'),
|
||||
checks.Warning('Second warning', obj='a'),
|
||||
checks.Error('An error', hint='Error hint'),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue