Skip to content

Commit

Permalink
fix missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed May 14, 2020
1 parent 45a4c28 commit c23b595
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shop/cascade/processbar.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.forms import fields, widgets
from django.utils.translation import gettext_lazy as _
from django.utils.translation import gettext_lazy as _, ngettext_lazy
from django.utils.text import Truncator
from django.utils.html import format_html
from django.forms.fields import IntegerField
Expand Down Expand Up @@ -37,7 +37,7 @@ class ProcessBarPlugin(TransparentWrapper, ShopPluginBase):
def get_identifier(cls, instance):
identifier = super(ProcessBarPlugin, cls).get_identifier(instance)
num_cols = instance.get_children().count()
content = ungettext_lazy('with {} page', 'with {} pages', num_cols).format(num_cols)
content = ngettext_lazy('with {} page', 'with {} pages', num_cols).format(num_cols)
return format_html('{0}{1}', identifier, content)

def get_render_template(self, context, instance, placeholder):
Expand Down

0 comments on commit c23b595

Please sign in to comment.