mirror of https://github.com/zulip/zulip.git
lint: Fix warnings under confirmation/.
This commit is contained in:
parent
a9a6687b7d
commit
eb71173be3
|
@ -110,4 +110,4 @@ class Confirmation(models.Model):
|
||||||
verbose_name_plural = _('confirmation emails')
|
verbose_name_plural = _('confirmation emails')
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return _('confirmation email for %s') % self.content_object
|
return _('confirmation email for %s') % (self.content_object,)
|
||||||
|
|
|
@ -41,5 +41,5 @@ def confirm(request, confirmation_key):
|
||||||
]
|
]
|
||||||
if obj:
|
if obj:
|
||||||
# if we have an object, we can use specific template
|
# if we have an object, we can use specific template
|
||||||
templates.insert(0, 'confirmation/confirm_%s.html' % obj._meta.model_name)
|
templates.insert(0, 'confirmation/confirm_%s.html' % (obj._meta.model_name,))
|
||||||
return render_to_response(templates, ctx, request=request)
|
return render_to_response(templates, ctx, request=request)
|
||||||
|
|
|
@ -34,7 +34,6 @@ os.chdir(os.path.join(os.path.dirname(__file__), '..'))
|
||||||
|
|
||||||
exclude = """
|
exclude = """
|
||||||
static/third
|
static/third
|
||||||
confirmation
|
|
||||||
frontend_tests/casperjs
|
frontend_tests/casperjs
|
||||||
zerver/migrations
|
zerver/migrations
|
||||||
node_modules
|
node_modules
|
||||||
|
|
Loading…
Reference in New Issue