问题
I tried the verbose name when registering it on my admin.py so that it would appear as Data instead of Datas but that did not work.
admin.site.register(Data, verbose_name="Data")
Any ideas?
回答1:
You should be setting verbose_name_plural
in that case. Docs here.
Also you should be setting it on the model's Meta
options of your model (docs here). Example:
class MyModel(models.Model):
# my fields
class Meta:
verbose_name_plural = "PluralForMyModel"
来源:https://stackoverflow.com/questions/18659308/admin-site-appending-letter-s-to-end-of-each-model-table-name-on-django