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')
|
||||
|
||||
def __unicode__(self):
|
||||
return _('confirmation email for %s') % self.content_object
|
||||
return _('confirmation email for %s') % (self.content_object,)
|
||||
|
|
|
@ -9,4 +9,4 @@ from django.conf import settings
|
|||
def get_status_field(app_label, model_name):
|
||||
model = '%s.%s' % (app_label, model_name)
|
||||
mapping = getattr(settings, 'STATUS_FIELDS', {})
|
||||
return mapping.get(model, 'status')
|
||||
return mapping.get(model, 'status')
|
||||
|
|
|
@ -41,5 +41,5 @@ def confirm(request, confirmation_key):
|
|||
]
|
||||
if obj:
|
||||
# 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)
|
||||
|
|
|
@ -34,7 +34,6 @@ os.chdir(os.path.join(os.path.dirname(__file__), '..'))
|
|||
|
||||
exclude = """
|
||||
static/third
|
||||
confirmation
|
||||
frontend_tests/casperjs
|
||||
zerver/migrations
|
||||
node_modules
|
||||
|
|
Loading…
Reference in New Issue