Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

verbose name fix #1

Merged
merged 1 commit into from

2 participants

veseloff Maxim Sukharev
veseloff

No description provided.

Maxim Sukharev smacker merged commit aa1dccf into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 27, 2012
  1. verbose_name fix

    Veseloff authored
This page is out of date. Refresh to see the latest.
2  appsettings/settingsobj.py
View
@@ -165,6 +165,8 @@ def __init__(self, appname, name, classobj, preset, main=False):
def __getattr__(self, name):
+ if name=='verbose_name':
+ name='_verbose_name'
if name not in ('_vals', '_name', '_appname', '_verbose_name', '_readonly', '_cache_prefix', '_main'):
if name not in self._vals:
raise AttributeError, 'setting "%s" not found'%name
2  appsettings/templates/appsettings/index.html
View
@@ -29,7 +29,7 @@
<caption><a href="{% url app_settings name %}" class="section">{% trans name %}</a></caption>
{% for group_name, group in groups %}
<tr>
- <th scope="row"><a href="{% url app_group_settings name group_name %}">{% trans group_name %}</a></th>
+ <th scope="row"><a href="{% url app_group_settings name group_name %}">{% trans group.verbose_name %}</a></th>
<td><a href="{% url app_group_settings name group_name %}" class="changelink">{% trans 'Change' %}</a></td>
</tr>
{% endfor %}
Something went wrong with that request. Please try again.