Skip to content

Commit 5980f86

Browse files
committed
make gcal_id uneditable (fr this time)
1 parent 3dd25b6 commit 5980f86

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

core/forms.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ 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
222221

223222
if "instance" in kwargs and kwargs["instance"] is not None:
224223
instance = kwargs["instance"]

core/migrations/0074_event_gcal_id.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ class Migration(migrations.Migration):
1313
migrations.AddField(
1414
model_name='event',
1515
name='gcal_id',
16-
field=models.CharField(default=None, max_length=1024, null=True, unique=True),
16+
field=models.CharField(default=None, editable=False, help_text='Unique identifier for events that are automatically created using data from the official WLMAC calendar. Should not be manually edited.', max_length=1024, null=True, unique=True),
1717
),
1818
]

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+
editable=False,
258259
help_text="Unique identifier for events that are automatically created using data from the official WLMAC calendar. Should not be manually edited.",
259260
)
260261

0 commit comments

Comments
 (0)