fixed pep8 errors

This commit is contained in:
Oskar Hahn 2013-01-04 12:39:42 +01:00
parent 4cc3d42bab
commit 5d754984a3
2 changed files with 2 additions and 2 deletions

View File

@ -318,7 +318,7 @@ class AssignmentPollDelete(DeleteView):
return reverse('assignment_view', args=[self.assignment.id]) return reverse('assignment_view', args=[self.assignment.id])
def get_success_message(self): def get_success_message(self):
return _('Ballot was successfully deleted.') % self.object return _('Ballot was successfully deleted.') % self.object
class AssignmentPDF(PDFView): class AssignmentPDF(PDFView):

View File

@ -471,7 +471,7 @@ def login(request):
extra_content = {} extra_content = {}
try: try:
admin = User.objects.get(pk=1) admin = User.objects.get(pk=1)
if admin.check_password(admin.default_password): if admin.check_password(admin.default_password):
extra_content['first_time_message'] = _( extra_content['first_time_message'] = _(
"Installation was successfully! Use %(user)s " "Installation was successfully! Use %(user)s "
"(password: %(password)s) for first login.<br>" "(password: %(password)s) for first login.<br>"