开发者

With all the easy Django utilities, tools, configs, settings, etc. is there REALLY no easy way to define the name of a custom App in Admin?

开发者 https://www.devze.com 2023-01-17 06:18 出处:网络
How can I make LadyGaga开发者_C百科App into \"Lady Gaga App\" when displayed in Admin. Option #1 is to explain how to make this happen in the definition of the app, or in settings, or in init, etc. Op

How can I make LadyGaga开发者_C百科App into "Lady Gaga App" when displayed in Admin. Option #1 is to explain how to make this happen in the definition of the app, or in settings, or in init, etc. Option #2 is to point me to the admin template page where this can be overridden with an example.

Many thanks all.

/Joe


This is not possible right now. There is a Django ticket open for this.


MYYN is right, open the class "Meta" inside of your model, and set "verbose_name" to "Lady Gaga App."


I think this may work:

http://packages.python.org/django-admin-tools/0.3.0/index.html

0

精彩评论

暂无评论...
验证码 换一张
取 消