Skip to content

Commit

Permalink
perf: order enterprise course enrollments by id
Browse files Browse the repository at this point in the history
  • Loading branch information
0x29a committed Dec 29, 2023
1 parent 904e834 commit 06646f4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2 on 2023-12-29 17:03

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('enterprise', '0197_auto_20231130_2239'),
]

operations = [
migrations.AlterModelOptions(
name='enterprisecourseenrollment',
options={'ordering': ['id']},
),
]
2 changes: 1 addition & 1 deletion enterprise/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1941,7 +1941,7 @@ class EnterpriseCourseEnrollment(TimeStampedModel):
class Meta:
unique_together = (('enterprise_customer_user', 'course_id',),)
app_label = 'enterprise'
ordering = ['created']
ordering = ['id']

enterprise_customer_user = models.ForeignKey(
EnterpriseCustomerUser,
Expand Down

0 comments on commit 06646f4

Please sign in to comment.