Skip to content

Commit 7ff49fb

Browse files
khattam2ihalaij1
authored andcommitted
Users should not be able to edit content hierarchy
Fixes #1306
1 parent 10939b0 commit 7ff49fb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

edit_course/exercise_forms.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ def init_fields(self, **kwargs):
5555
self.fields["parent"].queryset = LearningObject.objects\
5656
.exclude(id=self.lobject.id)\
5757
.filter(course_module=self.lobject.course_module)
58+
self.fields['parent'].widget.attrs.update(
59+
{'readonly': True, 'disabled': True})
5860

5961
@property
6062
def remote_service_head(self):

0 commit comments

Comments
 (0)