How to change EMPTY_CHANGELIST_VALUE in Django Admin? -


in django/contrib/admin/views/main.py, can find:

# text display within change-list table cells if value blank. empty_changelist_value = ugettext_lazy('(none)') 

how can cange value without use of translations , without overriding whole django-admin app?

it looks need monkey patch empty_changelist_value. try put on top of settings.py:

from django.contrib.admin.views import main main.empty_changelist_value = <your_value> 

it doesn't nice hope works you.


Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -