Skip to content

Commit

Permalink
Users should not be able to edit content hierarchy
Browse files Browse the repository at this point in the history
Fixes #1306
  • Loading branch information
khattam2 authored and ihalaij1 committed Dec 4, 2023
1 parent bbc60d3 commit 62e17e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions edit_course/exercise_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def init_fields(self, **kwargs):
self.fields["parent"].queryset = LearningObject.objects\
.exclude(id=self.lobject.id)\
.filter(course_module=self.lobject.course_module)
self.fields['parent'].widget.attrs.update(
{'readonly': True, 'disabled': True})

@property
def remote_service_head(self):
Expand Down

0 comments on commit 62e17e0

Please sign in to comment.