Skip to content

Commit 3dd25b6

Browse files
committed
add help text to gcal_id and prevent manual editing in admin form
1 parent 8b2b12e commit 3dd25b6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/forms.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ def __init__(self, *args, **kwargs):
218218
self.fields["schedule_format"].initial = "default"
219219
self.fields["term"].initial = models.Term.get_current()
220220
self.fields["is_instructional"].disabled = True
221+
self.fields["gcal_id"].disabled = True
221222

222223
if "instance" in kwargs and kwargs["instance"] is not None:
223224
instance = kwargs["instance"]

core/models/course.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ class Event(models.Model):
255255
default=None,
256256
null=True,
257257
unique=True,
258+
help_text="Unique identifier for events that are automatically created using data from the official WLMAC calendar. Should not be manually edited.",
258259
)
259260

260261
def __str__(self):

0 commit comments

Comments
 (0)