Skip to content

Commit 06cbbb6

Browse files
committed
Fix formatting tests
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent de20880 commit 06cbbb6

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

vulnerabilities/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Meta:
4747
)
4848

4949
def __init__(self, *args, **kwargs):
50-
super(ApiUserCreationForm, self).__init__(*args, **kwargs)
50+
super(ApiUserCreationForm, self).__init__(*args, **kwargs)
5151
self.fields["username"].help_text = f"<ul><li>{self.fields['username'].help_text}</li></ul>"
5252
self.fields["username"].label = "Email"
5353

vulnerabilities/views.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# See https://aboutcode.org for more information about nexB OSS projects.
88
#
99

10+
from django.contrib import messages
1011
from django.core.mail import send_mail
1112
from django.db.models import Count
1213
from django.db.models import Q
@@ -16,7 +17,6 @@
1617
from django.views import View
1718
from django.views import generic
1819
from django.views.generic.detail import DetailView
19-
from django.contrib import messages
2020
from django.views.generic.list import ListView
2121
from packageurl import PackageURL
2222

@@ -245,7 +245,9 @@ def form_valid(self, form):
245245
fail_silently=True,
246246
)
247247

248-
messages.success(self.request, f"API key token sent to your email address {self.object.email}.")
248+
messages.success(
249+
self.request, f"API key token sent to your email address {self.object.email}."
250+
)
249251

250252
return response
251253

0 commit comments

Comments
 (0)