diff --git a/mayan/apps/acls/classes.py b/mayan/apps/acls/classes.py index 18a8cb0d88..4ef806f9ed 100644 --- a/mayan/apps/acls/classes.py +++ b/mayan/apps/acls/classes.py @@ -7,7 +7,6 @@ import types from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ObjectDoesNotExist from django.db.models.base import ModelBase -from django.template.defaultfilters import capfirst from common.models import AnonymousUserSingleton @@ -111,7 +110,7 @@ class EncapsulatedObject(object): def __unicode__(self): if isinstance(self.source_object, ModelBase): - return capfirst(unicode(self.source_object._meta.verbose_name_plural)) + return unicode(self.source_object._meta.verbose_name_plural) elif self.ct_fullname == 'auth.user': return u'%s %s' % (self.source_object._meta.verbose_name, self.source_object.get_full_name()) elif self.ct_fullname == 'common.anonymoususersingleton': diff --git a/mayan/apps/acls/widgets.py b/mayan/apps/acls/widgets.py index 896d99611b..8da765f16f 100644 --- a/mayan/apps/acls/widgets.py +++ b/mayan/apps/acls/widgets.py @@ -3,7 +3,6 @@ from __future__ import absolute_import from django.utils.safestring import mark_safe from django.contrib.contenttypes.models import ContentType from django.db.models.base import ModelBase -from django.template.defaultfilters import capfirst from .literals import CONTENT_TYPE_ICON_MAP @@ -24,4 +23,4 @@ def object_w_content_type_icon(obj): else: label = unicode(obj) - return mark_safe('%s%s' % (content_type_icon(content_type), capfirst(label))) + return mark_safe('%s%s' % (content_type_icon(content_type), label)) diff --git a/mayan/apps/linking/forms.py b/mayan/apps/linking/forms.py index 2e72ce5bbd..9c74ded16e 100644 --- a/mayan/apps/linking/forms.py +++ b/mayan/apps/linking/forms.py @@ -2,7 +2,6 @@ from __future__ import absolute_import from django import forms from django.core.urlresolvers import reverse -from django.template.defaultfilters import capfirst from django.utils.safestring import mark_safe from django.utils.translation import ugettext @@ -37,7 +36,7 @@ class SmartLinkImageWidget(forms.widgets.Widget): ''' % { 'famfam': link.get('famfam', u'link'), - 'text': capfirst(link['text']), + 'text': link['text'], 'action': reverse(link.get('view'), args=[value['current_document'].pk, value['smart_link_instance'].pk]) }) output.append(u'') diff --git a/mayan/apps/main/templates/main/base.html b/mayan/apps/main/templates/main/base.html index 2e4fb61895..ac2e6b7d7d 100644 --- a/mayan/apps/main/templates/main/base.html +++ b/mayan/apps/main/templates/main/base.html @@ -182,7 +182,7 @@
{% csrf_token %}
diff --git a/mayan/apps/main/templates/main/calculate_form_title.html b/mayan/apps/main/templates/main/calculate_form_title.html index c92de4f10c..11f54c2e54 100644 --- a/mayan/apps/main/templates/main/calculate_form_title.html +++ b/mayan/apps/main/templates/main/calculate_form_title.html @@ -1,7 +1,7 @@ {% load i18n %} {% if title %} - {{ title|capfirst }} + {{ title }} {% else %} {% if read_only %} {% if object_name %} @@ -20,7 +20,7 @@ {% if object_name %} {% blocktrans %}Create new {{ object_name }}{% endblocktrans %} {% else %} - {% trans "Create" %} + {% trans 'Create' %} {% endif %} {% endif %} {% endif %} diff --git a/mayan/apps/main/templates/main/diagnostics.html b/mayan/apps/main/templates/main/diagnostics.html index 9c6ee810dc..6e323f3e26 100644 --- a/mayan/apps/main/templates/main/diagnostics.html +++ b/mayan/apps/main/templates/main/diagnostics.html @@ -1,11 +1,11 @@ {% extends 'main/base.html' %} -{% block title %} :: {{ title|capfirst }}{% endblock %} +{% block title %} :: {{ title }}{% endblock %} {% block content %} {% for key, value in blocks.items %}
-

{{ value.title|capfirst }}

+

{{ value.title }}