Fix summaries #14
|
@ -1,6 +1,7 @@
|
||||||
"""
|
"""
|
||||||
URL configuration for ausglamr project.
|
URL configuration for ausglamr project.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.urls import path, re_path
|
from django.urls import path, re_path
|
||||||
from django.views.generic import TemplateView
|
from django.views.generic import TemplateView
|
||||||
|
@ -65,6 +66,8 @@ urlpatterns = [
|
||||||
views.UnsubscribeEmail.as_view(),
|
views.UnsubscribeEmail.as_view(),
|
||||||
name="unsubscribe-email",
|
name="unsubscribe-email",
|
||||||
),
|
),
|
||||||
path('robots.txt', TemplateView.as_view(template_name='robots.txt',
|
path(
|
||||||
content_type='text/plain')),
|
"robots.txt",
|
||||||
|
TemplateView.as_view(template_name="robots.txt", content_type="text/plain"),
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""django apps"""
|
"""django apps"""
|
||||||
|
|
||||||
from django.apps import AppConfig
|
from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -141,7 +141,7 @@ class ContactForm(forms.Form):
|
||||||
bot_check = forms.CharField(
|
bot_check = forms.CharField(
|
||||||
label="What is usually stored in a library?",
|
label="What is usually stored in a library?",
|
||||||
max_length=10,
|
max_length=10,
|
||||||
help_text="Checking that you are human"
|
help_text="Checking that you are human",
|
||||||
)
|
)
|
||||||
|
|
||||||
def clean_bot_check(self):
|
def clean_bot_check(self):
|
||||||
|
|
|
@ -94,9 +94,7 @@ class EventFeed(Feed):
|
||||||
return (
|
return (
|
||||||
item.description
|
item.description
|
||||||
if hasattr(item, "description")
|
if hasattr(item, "description")
|
||||||
else item.details
|
else item.details if hasattr(item, "details") else None
|
||||||
if hasattr(item, "details")
|
|
||||||
else None
|
|
||||||
)
|
)
|
||||||
|
|
||||||
def item_link(self, item):
|
def item_link(self, item):
|
||||||
|
@ -215,9 +213,7 @@ class CombinedFeed(Feed):
|
||||||
return (
|
return (
|
||||||
item.description
|
item.description
|
||||||
if hasattr(item, "description")
|
if hasattr(item, "description")
|
||||||
else item.details
|
else item.details if hasattr(item, "details") else None
|
||||||
if hasattr(item, "details")
|
|
||||||
else None
|
|
||||||
)
|
)
|
||||||
|
|
||||||
def item_link(self, item):
|
def item_link(self, item):
|
||||||
|
|
|
@ -194,9 +194,9 @@ class RegisterBlog(View):
|
||||||
data["blog_info"] = blog_info
|
data["blog_info"] = blog_info
|
||||||
|
|
||||||
else:
|
else:
|
||||||
data[
|
data["error"] = (
|
||||||
"error"
|
"Could not auto-discover your feed info, please enter manually"
|
||||||
] = "Could not auto-discover your feed info, please enter manually"
|
)
|
||||||
|
|
||||||
return render(request, "blogs/confirm-register.html", data)
|
return render(request, "blogs/confirm-register.html", data)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue