Skip to content

Commit

Permalink
removing order
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav committed Jan 30, 2025
1 parent c4a4fde commit 5fd7532
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cms/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,9 @@ class InstructorPageLink(models.Model): # noqa: DJ008
)
order = models.SmallIntegerField(default=1, null=True, blank=True)

readonly_fields= ("order",)
panels = [
FieldPanel('order'),
PageChooserPanel("linked_instructor_page", "cms.InstructorPage"),
]

Expand Down Expand Up @@ -1102,7 +1104,10 @@ def is_program_page(self):
FieldPanel("feature_image"),
FieldPanel("video_url"),
FieldPanel("faculty_section_title"),
InlinePanel("linked_instructors", label="Faculty Members"),
InlinePanel(
"linked_instructors",
label="Faculty Members",
help_text="If you need to change the order of faculty members, please delete and add them in the correct order, instead of re-choosing"),
]

subpage_types = ["FlexiblePricingRequestForm", "CertificatePage"]
Expand Down

0 comments on commit 5fd7532

Please sign in to comment.