mirror of
https://github.com/Findus23/acronomy.git
synced 2024-09-19 15:33:45 +02:00
fix check
This commit is contained in:
parent
9eb19c79bd
commit
5d1c862c79
1 changed files with 4 additions and 1 deletions
|
@ -45,7 +45,10 @@ class FullNameCheck(BaseCheck):
|
|||
for acronym in Acronym.objects.all():
|
||||
first_letter = acronym.full_name[0]
|
||||
if first_letter.islower():
|
||||
yield CheckInfo(f"first letter of full name should be uppercase ({acronym.full_name})")
|
||||
yield CheckInfo(
|
||||
f"first letter of full name should be uppercase ({acronym.full_name})",
|
||||
obj=acronym
|
||||
)
|
||||
|
||||
|
||||
registry.register(FullNameCheck)
|
||||
|
|
Loading…
Reference in a new issue