Skip to content

Commit 0c7730a

Browse files
committed
feat: set default ordering in entitylistrow table
1 parent ddbae25 commit 0c7730a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

openedx_learning/apps/authoring/publishing/models/entity_list.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class EntityListRow(models.Model):
6060
)
6161

6262
class Meta:
63+
ordering = ["order_num"]
6364
constraints = [
6465
# If (entity_list, order_num) is not unique, it likely indicates a race condition - so force uniqueness.
6566
models.UniqueConstraint(

0 commit comments

Comments
 (0)