fixed pep8 errors
This commit is contained in:
parent
4cc3d42bab
commit
5d754984a3
@ -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):
|
||||||
|
@ -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>"
|
||||||
|
Loading…
Reference in New Issue
Block a user