fix formatting issues

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Alice Kile authored and James Valleroy committed 2019-12-07 13:08:35 -05:00
1 parent fa74a26042
commit eb83e00011
134 files changed
+598 -720

No files matched your search

-1
View File
@@ -14,7 +14,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
"""
Forms for security module
"""
+3 -4
View File
@@ -20,8 +20,7 @@ Application manifest for security.
from plinth.modules.backups.api import validate as validate_backup
backup = validate_backup({
'config': {
backup = validate_backup(
{'config': {
'files': ['/etc/security/access.d/50freedombox.conf']
}
})
}})
-2
View File
@@ -14,7 +14,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
"""
URLs for the security module
"""
@@ -23,7 +22,6 @@ from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^sys/security/$', views.index, name='index'),
url(r'^sys/security/report$', views.report, name='report'),
+5 -9
View File
@@ -43,15 +43,11 @@ def index(request):
else:
form = SecurityForm(initial=status, prefix='security')
return TemplateResponse(
request, 'security.html', {
'name':
_('Security'),
'manual_page':
security.manual_page,
'form':
form,
})
return TemplateResponse(request, 'security.html', {
'name': _('Security'),
'manual_page': security.manual_page,
'form': form,
})
def get_status(request):