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

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -