mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed all the E203 violations
This commit is contained in:
parent
3351e94ffa
commit
b35ff0d920
63 changed files with 541 additions and 541 deletions
|
@ -191,7 +191,7 @@ def _permission_protected_view(request):
|
|||
"A simple view that is permission protected."
|
||||
t = Template('This is a permission protected test. '
|
||||
'Username is {{ user.username }}. '
|
||||
'Permissions are {{ user.get_all_permissions }}.' ,
|
||||
'Permissions are {{ user.get_all_permissions }}.',
|
||||
name='Permissions Template')
|
||||
c = Context({'user': request.user})
|
||||
return HttpResponse(t.render(c))
|
||||
|
@ -211,7 +211,7 @@ class _ViewManager(object):
|
|||
def permission_protected_view(self, request):
|
||||
t = Template('This is a permission protected test using a method. '
|
||||
'Username is {{ user.username }}. '
|
||||
'Permissions are {{ user.get_all_permissions }}.' ,
|
||||
'Permissions are {{ user.get_all_permissions }}.',
|
||||
name='Permissions Template')
|
||||
c = Context({'user': request.user})
|
||||
return HttpResponse(t.render(c))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue