Django outputs verbose_name in quotes and parentheses in admin panel

Question:

My problem is the following.

Code:

...
class Meta:
    verbose_name = 'сайт',
    verbose_name_plural = '1. Сайт',
...

Result:
enter image description here
enter image description here

Why Django outputs verbose_name in quotes and parentheses in admin panel?

Asked By: vladver

||

Answers:

Remove the commas after the string values, so that verbose_name and verbose_name_plural are defined as strings.
The trailing comma after the string values turns them into one-element tuples.

class Meta:
verbose_name = 'сайт'
verbose_name_plural = '1. Сайт'
Answered By: Ake
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.