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
Post a Comment