Skip to content

Commit ad5f579

Browse files
committed
Remove ordering from Package and Resource #551
Signed-off-by: Jono Yang <[email protected]>
1 parent 32d87d7 commit ad5f579

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Generated by Django 5.1.2 on 2024-12-02 19:40
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("packagedb", "0087_rename_discovered_dependency_attribute"),
10+
]
11+
12+
operations = [
13+
migrations.AlterModelOptions(
14+
name="package",
15+
options={},
16+
),
17+
migrations.AlterModelOptions(
18+
name="resource",
19+
options={},
20+
),
21+
]

packagedb/models.py

-2
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,6 @@ class Package(
552552

553553
# TODO: Think about ordering, unique together, indexes, etc.
554554
class Meta:
555-
ordering = ["id"]
556555
unique_together = [
557556
(
558557
"download_url",
@@ -1144,7 +1143,6 @@ class Resource(
11441143

11451144
class Meta:
11461145
unique_together = (("package", "path"),)
1147-
ordering = ("id",)
11481146
indexes = [
11491147
models.Index(fields=["md5"]),
11501148
models.Index(fields=["sha1"]),

0 commit comments

Comments
 (0)