New version of black, new whitespace
This commit is contained in:
@ -9,10 +9,10 @@ from django.views import View
|
||||
# pylint: disable= no-self-use
|
||||
@method_decorator(login_required, name="dispatch")
|
||||
class Notifications(View):
|
||||
""" notifications view """
|
||||
"""notifications view"""
|
||||
|
||||
def get(self, request):
|
||||
""" people are interacting with you, get hyped """
|
||||
"""people are interacting with you, get hyped"""
|
||||
notifications = request.user.notification_set.all().order_by("-created_date")
|
||||
unread = [n.id for n in notifications.filter(read=False)]
|
||||
data = {
|
||||
@ -23,6 +23,6 @@ class Notifications(View):
|
||||
return TemplateResponse(request, "notifications.html", data)
|
||||
|
||||
def post(self, request):
|
||||
""" permanently delete notification for user """
|
||||
"""permanently delete notification for user"""
|
||||
request.user.notification_set.filter(read=True).delete()
|
||||
return redirect("/notifications")
|
||||
|
Reference in New Issue
Block a user