python - Is there a "short_description" method for variables in Django? -


In one of my models I have a long variable name "xxxx_xxxx_xx_xxxxxxxx" is equal to there: < Pre> xxxx_xxxx_xx_xxxxxxxx.short_description = 'xxxx'

Is there a method to show or to show me this? I do not want to use a method because I want to be able to sort this variable in Django Administrator. Thank you.

Look at the options. It allows you to use whatever you like in the administrator. There is also unusual plural construxions which are also for model name .

Comments