make format
This commit is contained in:
parent
1fef9eeef9
commit
59d93cf686
@ -1123,7 +1123,9 @@ class Event(models.Model):
|
||||
)
|
||||
eventIcal.add("summary", event.title)
|
||||
eventIcal.add("name", event.title)
|
||||
eventIcal.add("description", event.description + "\r" + event.reference_urls[0])
|
||||
eventIcal.add(
|
||||
"description", event.description + "\r" + event.reference_urls[0]
|
||||
)
|
||||
eventIcal.add("location", event.exact_location or event.location)
|
||||
|
||||
cal.add_component(eventIcal)
|
||||
|
@ -10,7 +10,7 @@ from django.http import QueryDict
|
||||
from django import forms
|
||||
from django.contrib.postgres.search import SearchQuery, SearchHeadline
|
||||
|
||||
from django.http import HttpResponseRedirect, HttpResponse, HttpResponseNotFound, FileResponse
|
||||
from django.http import HttpResponseRedirect, FileResponse
|
||||
from django.urls import reverse
|
||||
from collections import Counter
|
||||
|
||||
@ -608,9 +608,10 @@ def export_event_ical(request, pk):
|
||||
|
||||
return FileResponse(
|
||||
cal.to_ical().decode("utf-8").replace("\r\n", "\n"),
|
||||
as_attachment=True,
|
||||
filename= event.title + ".ics",
|
||||
content_type="text/calendar")
|
||||
as_attachment=True,
|
||||
filename=event.title + ".ics",
|
||||
content_type="text/calendar",
|
||||
)
|
||||
|
||||
|
||||
class EventFilterAdmin(django_filters.FilterSet):
|
||||
|
Loading…
Reference in New Issue
Block a user