formatting

This commit is contained in:
Hugh Rundle 2024-06-24 12:23:01 +10:00
parent 365b7e7d78
commit 88d56e5e04
Signed by: hugh
GPG key ID: A7E35779918253F9
5 changed files with 13 additions and 13 deletions

View file

@ -1,6 +1,7 @@
"""
URL configuration for ausglamr project.
"""
from django.contrib import admin
from django.urls import path, re_path
from django.views.generic import TemplateView
@ -65,6 +66,8 @@ urlpatterns = [
views.UnsubscribeEmail.as_view(),
name="unsubscribe-email",
),
path('robots.txt', TemplateView.as_view(template_name='robots.txt',
content_type='text/plain')),
path(
"robots.txt",
TemplateView.as_view(template_name="robots.txt", content_type="text/plain"),
),
]

View file

@ -1,4 +1,5 @@
"""django apps"""
from django.apps import AppConfig

View file

@ -141,7 +141,7 @@ class ContactForm(forms.Form):
bot_check = forms.CharField(
label="What is usually stored in a library?",
max_length=10,
help_text="Checking that you are human"
help_text="Checking that you are human",
)
def clean_bot_check(self):

View file

@ -94,9 +94,7 @@ class EventFeed(Feed):
return (
item.description
if hasattr(item, "description")
else item.details
if hasattr(item, "details")
else None
else item.details if hasattr(item, "details") else None
)
def item_link(self, item):
@ -215,9 +213,7 @@ class CombinedFeed(Feed):
return (
item.description
if hasattr(item, "description")
else item.details
if hasattr(item, "details")
else None
else item.details if hasattr(item, "details") else None
)
def item_link(self, item):

View file

@ -194,9 +194,9 @@ class RegisterBlog(View):
data["blog_info"] = blog_info
else:
data[
"error"
] = "Could not auto-discover your feed info, please enter manually"
data["error"] = (
"Could not auto-discover your feed info, please enter manually"
)
return render(request, "blogs/confirm-register.html", data)