Skip to content

Commit da479cf

Browse files
committed
Remove blank line to avoid the almighty wrath of isort
1 parent 318e48d commit da479cf

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

cspreports/admin.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,22 @@
22

33
from cspreports.models import get_report_model
44

5-
65
CSPReport = get_report_model()
76

87

98
class CSPReportAdmin(admin.ModelAdmin):
10-
list_display = ('id', 'created', 'document_uri', 'blocked_uri')
11-
fields = ('created', 'modified', 'json_as_html')
12-
readonly_fields = ('created', 'modified', 'json_as_html')
9+
list_display = ("id", "created", "document_uri", "blocked_uri")
10+
fields = ("created", "modified", "json_as_html")
11+
readonly_fields = ("created", "modified", "json_as_html")
1312

1413
def json_as_html(self, instance):
1514
return "<br />" + instance.json_as_html()
1615

1716
def document_uri(self, instance):
18-
return instance.data.get('csp-report', {}).get('document-uri')
17+
return instance.data.get("csp-report", {}).get("document-uri")
1918

2019
def blocked_uri(self, instance):
21-
return instance.data.get('csp-report', {}).get('blocked-uri')
20+
return instance.data.get("csp-report", {}).get("blocked-uri")
2221

2322
json_as_html.short_description = "Report"
2423
json_as_html.allow_tags = True

0 commit comments

Comments
 (0)