Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Merge requests
!1148
Calendar events and iCal feeds
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Calendar events and iCal feeds
calendar-object-feeds
into
master
Overview
43
Commits
108
Pipelines
54
Changes
1
Merged
Jonathan Weth
requested to merge
calendar-object-feeds
into
master
2 years ago
Overview
29
Commits
108
Pipelines
54
Changes
1
Expand
0
0
Merge request reports
Viewing commit
8efa37b8
Prev
Next
Show latest version
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
8efa37b8
Use correct map with iCal attributes from django-ical
· 8efa37b8
Jonathan Weth
authored
1 year ago
aleksis/core/mixins.py
+
2
−
2
Options
@@ -22,7 +22,7 @@ from django.views.generic import CreateView, UpdateView
from
django.views.generic.edit
import
DeleteView
,
ModelFormMixin
import
reversion
from
django_ical.feedgenerator
import
ITEM_E
V
ENT_FIELD_MAP
from
django_ical.feedgenerator
import
ITEM_E
LEM
ENT_FIELD_MAP
from
dynamic_preferences.settings
import
preferences_settings
from
dynamic_preferences.types
import
FilePreference
from
guardian.admin
import
GuardedModelAdmin
@@ -676,7 +676,7 @@ class CalendarEventMixin(RegistryObject):
@classmethod
def
get_event_field_names
(
cls
)
->
list
[
str
]:
"""
Return the names of the fields to be used for the feed.
"""
return
[
field_map
[
0
]
for
field_map
in
ITEM_E
V
ENT_FIELD_MAP
]
return
[
field_map
[
0
]
for
field_map
in
ITEM_E
LEM
ENT_FIELD_MAP
]
@classmethod
def
get_event_field_value
(
cls
,
reference_object
,
field_name
:
str
):
Loading