Fix trailing whitespace and missing end-of-file newline

This commit is contained in:
Ben Sturmfels 2024-07-22 17:25:35 +10:00
parent c5289f39bb
commit a2f38653fb
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0
55 changed files with 160 additions and 183 deletions

View file

@ -17,5 +17,3 @@ class EntryAdmin(admin.ModelAdmin):
search_fields = ['headline', 'summary', 'body']
prepopulated_fields = {'slug': ("headline",)}
filter_horizontal = ('tags',)

View file

@ -356,4 +356,3 @@ def main(arglist=None, stdout=sys.stdout, stderr=sys.stderr):
if __name__ == '__main__':
exit(main())

View file

@ -16,6 +16,3 @@ class EventAdmin(admin.ModelAdmin):
@admin.register(EventMedia)
class EventMediaAdmin(admin.ModelAdmin):
list_display = ("event", "format", "novel")

View file

@ -96,4 +96,3 @@ class EventMedia(models.Model):
def __str__(self):
return "{} media: {}".format(self.event, self.format)

View file

@ -19,7 +19,3 @@ class ExternalArticleAdmin(admin.ModelAdmin):
list_filter = ['date']
date_hierarchy = 'date'
search_fields = ["title", "info", "publication"]

View file

@ -116,4 +116,3 @@ class ExternalArticle(models.Model):
objects = models.Manager()
public = PublicExternalArticleManager()

View file

@ -92,4 +92,3 @@ class NewsDateDetailView(DateDetailView):
# # del kwargs['slug']
# callable = NewsDateDetailView.as_view(**kwargs)
# return callable(request)

View file

@ -39,5 +39,3 @@ class CastAdmin(admin.ModelAdmin):
search_fields = ['title', 'summary', 'body']
prepopulated_fields = {'slug': ("title",)}
filter_horizontal = ('tags',)

View file

@ -8,4 +8,3 @@ class PersonAdmin(admin.ModelAdmin):
list_display = ("username", "formal_name", "casual_name",
"currently_employed")
list_filter = ["currently_employed"]

File diff suppressed because one or more lines are too long

View file

@ -4434,4 +4434,3 @@ being here with Ken thanks so much
01:00:28.380 --> 01:00:31.380
foreign

View file

@ -202,4 +202,3 @@ we request
00:03:38.680 --> 00:03:44.200
that you grant Karen Sandler
the KU Leuven honorary doctorate.

View file

@ -214,4 +214,3 @@ op voordracht van de Academische Raad,
00:03:38.680 --> 00:03:44.200
het eredoctoraat van de KU Leuven
te verlenen aan mevrouw Karen Sandler.

View file

@ -6,4 +6,3 @@ from .models import Supporter
@admin.register(Supporter)
class SupporterAdmin(admin.ModelAdmin):
list_display = ('display_name', 'display_until_date')

View file

@ -6,4 +6,3 @@ from .models import EarthLocation
@admin.register(EarthLocation)
class EarthLocationAdmin(admin.ModelAdmin):
list_display = ("label", "html_map_link")

View file

@ -26,4 +26,3 @@ class EarthLocation(models.Model):
def html_map_link(self): # for Admin, fixme: fix_ampersands
return '<a href="%s">map link</a>' % self.default_map_link()
html_map_link.allow_tags = True